On Thu, 19 Dec 2002, Max Clark wrote:
> Hi-
>
> 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).
The documentation and search capabilities at http://www.php.net are your
frientd. It would behhove you
Yes, It's called "SWITCH"
Just go to www.php.net and lookup "switch" in the function list
Max Clark <[EMAIL PROTECTED]> wrote:Hi-
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).
Thanks in advance,
Max
> -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.swit
On Thu, 19 Dec 2002, Max Clark wrote:
> 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).
switch function ...
http://www.php.net/manual/en/control-structures.switch.php
~Chris
--
PHP General M
4 matches
Mail list logo