18.07.2011, 21:32
It's like this:
isn't really meant to be used. Your first example is good. If you have 7 values for one variable and you want for each to do different thing you will use on each
but if you want that 6 have same function and one different you will use for one
and for the rest
. So else is for all values that weren't previously used in if.
PHP код:
else if
PHP код:
if
PHP код:
if
PHP код:
else