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

Reply via email to