note 124881 deleted from function.array-search by crell
| From: | crell@php.net | Date: | Thu, 31 Mar 2022 20:53:33 +0000 |
| Subject: | note 124881 deleted from function.array-search by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217969@lists.php.net to get a copy of this message | ||
Note Submitter: it2 dot mnr at gmail dot com
----
About searcing in multi-dimentional arrays;
note on "xfoxawy at gmail dot com":
If you use your own keys in a multidimensional array, this will not work. Better use for this
situation:
array_search($searchingValue, array_map(function($val){return $val['KEY_NAME'];},
$inputArray));