Basic PHP Syntax
November 25th, 2008
When a PHP Programmer starts to write a PHP snippet, the basic php syntax always starts with <?php and ends with ?>. You can place this snippet anywhere in the *.php document.
Some servers do support shorthand, in which case you can start with<? and end with ?> .
But for maximum portablitlity, I do recommend that you stick with the standard <?php rather than shorthand <? .
Heres an example:
<?php
echo “Hello, World”;
?>