NYCPHP Meetup

NYPHP.org

[nycphp-talk] range in switch/case

Chris Bielanski Cbielanski at inta.org
Thu Feb 5 13:43:06 EST 2004


I'm being lazy - in Pascal/Delphi you can assign a range as a case in a
switch statement. for example... case(0..255) or case('A'..'Z').

Does PHP have a facility to do this? I note that the above doesn't like me
very much ;)

Thanks,
Chris Bielanski - [CBielanski at inta.org]
Web Programmer, 
International Trademark Association - [www.inta.org]
1133 Ave. of the Americas - Manhattan
p - 212/642-1745







More information about the talk mailing list