What's faster using if else or arrays?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm working on a project and I was wondering if I should use if else's or arrays ?? 

Example 

If($foo= 5)
{ 
$dothis
}
ElseIf($foo= 3)
{ 
$dothis
}
Else{ $donothing }

Or put it in some short of arrays and pregmatch what would be the best to use and easiest to read 
Sent via BlackBerry from T-Mobile

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux