note 11312 deleted from function.in-array by jimw
| From: | jimw@php.net | Date: | Fri, 07 Dec 2001 21:07:30 +0000 |
| Subject: | note 11312 deleted from function.in-array by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21969@lists.php.net to get a copy of this message | ||
It seems like in_array does not work with multidimentional arrays.
i.e.
$arr = array( array("one", "two"), array("tree", "four") );
$multi = in_array("two", $arr);
$single = in_array("two", $arr[0]);
// $multi == FALSE
// $single == TRUE