PHP Manual
Prev | Chapter 6. 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:

    <?php
        echo "This is a test";
    ?>

    <?php echo "This is a test" ?>

Prev | Home | Next
Basic syntax | Up | Comments