10.01.2016, 19:20
I'd really like to know if any of these two is faster than the other one.
Personally i think no cause it basically is the same, but i'd still like to know.
Hope someone can tell me, thanks.
or
greetings Marcel
Personally i think no cause it basically is the same, but i'd still like to know.
Hope someone can tell me, thanks.
PHP код:
switch(listitem)
{
case 0: .....
case 1: .....
default: .....
}
PHP код:
if(listitem == 0)
{
....
}
else if(listitem == 1)
{
....
}
else
{
....
}