[PHP] Re: Question about using if elseif ...

2002-07-23 Thread Fargo Lee
Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question about using if elseif ...

2002-07-18 Thread Pete James
> > 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 ve