<?php
echo "Hello world";
// ... more code
echo "Last statement";
// the script ends here with no PHP closing tag
// The opening tag
<?php
echo "Here is the PHP code."; // Everything in between the tags is executed as PHP code.
// The closing tag
?>