Loop can be replaced with 'in_array()' or 'array_key_exists()' call
Reports the foreach
loops that can be safely replaced with in_array()
or array_key_exists()
calls.
See in_array (php.net) and array_key_exists (php.net) for details.
Inspection Details | |
---|---|
Available in: | PhpStorm 2023.3, Qodana for PHP 2023.3 |
Plugin: | PHP, 233.SNAPSHOT |
Last modified: 13 July 2023