The PHP processor excutes the code written between the <?php and ?> tags. Any content outside of these tags is ignored.
To prevent syntax errors, make sure there is a space, tab or newline before the opening <?php tag.
<?php echo 'This is a example the print'; //syntax error <?phpecho
PHP also supports a short echo tag <?=, which is a shorthand for <?php echo
//two write, but same outcome <php echo 'Show title here!' ?> <?= 'Show title here!' ?>
The short echo tag is enabled by default, but you can disable it by editing the php.ini file and setting the short_open_tag directive to off.
The closing tag ?> is optional when a PHP file contains only PHP code. Omitting the closing tag helps prevent errors caused by unwanted whitespace or newline at the end of the file.

Transcrition: