NYCPHP Meetup

NYPHP.org

[nycphp-talk] Re: Weird Switch Behavior

John Campbell jcampbell1 at gmail.com
Wed Sep 10 00:03:41 EDT 2008


Hi Mike,

Maybe a simple way around this is just to use:

switch("$key")

It makes it pretty clear that you are only dealing with strings, and
you won't have to deal with casting issues.

Regards,
John Campbell



More information about the talk mailing list