When viewing examples of using if and elseif I often see the example ending with an else like ...
if($a == '1'){
echo '1';
} elseif ($a == '2'){
echo '2';
} else {
echo '0';
}
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';
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

