PHP Manual
Prev | Chapter 5. Basic syntax | Next

# Instruction separation

Instructions are separated the same as in C or perl - terminate each statement with a semicolon.

The closing tag (?>) also implies the end of the statement, so the following are equivalent:

      1
      2 <?php
      3     echo "This is a test";
      4 ?>
      5
      6 <?php echo "This is a test" ?>
      7

Prev | Home | Next
Basic syntax | Up | Comments