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

<?php
function writeMsg() {
    echo "Hello world!";
}

writeMsg();
?>


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