Alternative Syntax for Control Structures

suggest change

Syntax

Remarks

When mixing the alternative syntax for switch with HTML, do not put any whitespace between the initial switch ($condition): and the first case $value:. That whitespace is treated as output before a case, which is a syntax error.

All control structures follow the same idea. Instead of curly braces, use a colon and an endstructure; statement: structure: /* code */ endstructure;

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents