> -----Original Message-----
> From: Max Clark [mailto:[EMAIL PROTECTED]]
> Sent: 19 December 2002 18:19
> 
> I was wondering if php had a case function?
> 
> Instead of building a large if/elseif/else block I would like 
> to do a case
> $page in (list).

http://www.php.net/control-structures.switch

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

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

Reply via email to