The two most common ways to start and finish a PHP script are:

 1. <?php [   ---  PHP code---- ] ?>  
 2. <? [---  PHP code  ---] ?>