note 14199 added to function.in-array.php
| From: | shrink at mail dot com | Date: | Sat, 21 Jul 2001 16:49:58 +0000 |
| Subject: | note 14199 added to function.in-array.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15638@lists.php.net to get a copy of this message | ||
Help! This doesn't seem to work when searching for an array *within* an array. As in:
$item = array ( ... );
$array = array ( $item, ... );
if (in_array ($item, $array)) ...
That throws a big happy error, saying "wrong datatype for first argument". Is this how
it's supposed to behave?
http://www.php.net/manual/en/function.in-array.php