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:

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

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

Prev | Home | Next
Basic syntax | Up | Comments