> Is there any problem with leaving out the last else and just ending it with
> an elseif such as ...
> if($a == '1'){
> echo '1';
> } elseif ($a == '2'){
> echo '2';
> }

Nothing syntactically, but surely you wouldn't want a rogue '3' or '0'
to fall through the cracks... that wouldn't be very good, and depending
on the circumstances, could be a serious breach of security.  And it
_will_ happen one day if you get in the habit of not using else _all the

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to