Re: if syntax

From: Date: Wed, 10 Jul 2002 14:28:00 +0000
Subject: Re: if syntax
Groups: php.general 
Request: Send a blank email to php-general+get-106808@lists.php.net to get a copy of this message
This will only work if you have a single line of code after the else and if. At least that is my understanding of all languages :) J "Alexander Ross" <alexross@bleen.net> 07/10/2002 08:25 AM To: php-general@lists.php.net cc: Subject: [PHP] if syntax I know this is correct: if ($something) { ... } else { ... } But I recently saw someone use this instead: 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

« previous php.general (#106808) next »