note 124106 deleted from function.array-search by crell
| From: | crell@php.net | Date: | Thu, 31 Mar 2022 20:46:09 +0000 |
| Subject: | note 124106 deleted from function.array-search by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217964@lists.php.net to get a copy of this message | ||
Note Submitter: David Spector
----
For data lookups that are fast in both directions (key to value, value to key), consider storing and
updating both the array and its array_flip() version.