Re: some array help :)
| From: | Mark | Date: | Sat, 10 Mar 2001 08:51:09 +0000 |
| Subject: | Re: some array help :) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43298@lists.php.net to get a copy of this message | ||
Its a function.
in php4, easy: http://php.net/manual/en/function.in-array.php
there will be an example for php 3 as well.
At 11:36 AM 3/10/2001 +0100, you wrote:
>hello,
>
>i'm trying to do something like
>
>$tmparray = array("foo", "foo1", "foo2");
>if ($i in $tmparray) then do something
>..
>but i dont know how to do it.
>any help would be appriciated
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
art-nude.com