Alexander, 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 "else".
HTH Chris Alexander Ross wrote: > >if($something): > ... >else: >... > >Is that also correct?? No brackets needed? > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php