if syntax
| From: | Alexander Ross | Date: | Wed, 10 Jul 2002 14:25:31 +0000 |
| Subject: | if syntax | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-106805@lists.php.net to get a copy of this message | ||
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?