Re: if syntax

From: Date: Wed, 10 Jul 2002 14:44:37 +0000
Subject: Re: if syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-106815@lists.php.net to get a copy of this message
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?


« previous php.general (#106815) next »