Re: What's faster using if else or arrays?
| From: | Jim Giner | Date: | Thu, 28 Apr 2011 21:36:26 +0000 |
| Subject: | Re: What's faster using if else or arrays? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312548@lists.php.net to get a copy of this message | ||
how many entries are you talking about, ie., how many conditions? Obviously
if you have more than 4-5 it's going to be easier to code up as a case
statement (?) rather than an if/else.
Never in all my days have I ever heard of using an array for such a
determination though.
(remainder deleted for all reader's sakes :) )