On 11-04-28 06:37 PM, dholmes1...@gmail.com wrote:
Thanks switch and case seems to be more faster for the job and a lot cleaner
From: Andre Polykanine
Subject: Re: [PHP] What's faster using if else or arrays?
Sent: Apr 28, 2011 6:17 PM
I would write it like this:
case 5: $dothis; break;
case 3: $dothat; break;
default: $donothing; break;
This sounds like a job for *dun dun dun* GOTO!
Kidding, of course ;)
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php