At 7:19 PM -0400 4/28/11, Robert Cummings wrote:
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
Hello Dholmes1031,

I would write it like this:
switch($foo) {
            case 5: $dothis; break;
case 3: $dothat; break;
default: $donothing; break;
}

This sounds like a job for *dun dun dun* GOTO!

Kidding, of course ;)

Cheers,
Rob.

Rob:

Actually, goto could be used for this -- but I would rather use switch.

Cheers,

tedd

--
-------
http://sperling.com/

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

Reply via email to