PHP Source:
<!DOCTYPE html>
<html>
<body>

<?php
define("GREETING", "Welcome to W3Schools.com!");

function myTest() {
    echo GREETING;
}
 
myTest();
?>


</body>
</html>
Result:
Show PHP - © w3schools.com
Privacy Policy