Alternative syntax for control structures
PHP offers an alternative syntax for some of its control
structures; namely, The above example will output: A is equal to 5
In the above example, the HTML block "A is equal to 5" is nested within an
The alternative syntax applies to The above example will output: a equals 5...
Warning
Any output (including whitespace) between a The above example will output: Parse error: syntax error, unexpected T_INLINE_HTML " ", expecting "endswitch" or "case" or "default" in script on line 4
Whereas this is valid, as the trailing newline after the
The above example will output:
Foo is 1
|