The thing to do is to try it yourself. Yes its OK for single statements 
(I assume the colon after the "$condition):" is a typo. The first two 
examples in the manual (Chapter 11, if) show this syntax though not with 


Alexander Ross wrote:

> ...
>Is that also correct??   No brackets needed?

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to