There is another, not so often used, statement in PHP, that is a part of structure controlling stataments; that is the goto statement

The goto statement allows the controller to jump to a different section of a program. The section must be specified with a label followed by a colon.

Syntax of GOTO statement

    goto label;
    // code...

    // continue code...

Example with GOTO and LABEL statements

    goto label_x;
    echo "Hello...";
    echo " World";


›› go to examples ››