note 16817 added to function.in-array
| From: | sitedev at g2games dot com | Date: | Wed, 14 Nov 2001 18:56:11 +0000 |
| Subject: | note 16817 added to function.in-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20842@lists.php.net to get a copy of this message | ||
Perhaps I'm wrong, but I'm finding that a simple 'isset' works just fine when
checking for a key in a multidimensional array, even if the key is in another multidimensional
array:
if (isset($arr1[$subarr1][$subarr1-1][($arr2[$subarr2][$subarr2-1])]) {
...do...
}
'in_array' wouldn't work for me in this case...
--
http://www.php.net/manual/en/function.in-array.php
http://master.php.net/manage/user-notes.php?action=edit+16817
http://master.php.net/manage/user-notes.php?action=delete+16817
http://master.php.net/manage/user-notes.php?action=reject+16817