note 130631 added to function.in-array

From: Date: Sun, 01 Feb 2026 05:20:07 +0000
Subject: note 130631 added to function.in-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-222525@lists.php.net to get a copy of this message
You just did a Control/Command+F to look for multidimensional support and you found this. I'm posting both the key and value on their respective documentation pages. <?php function in_multi_array_value($needle, $array) { $r = false; foreach ($array as $k1 => $v1) { if (is_array($v1)) { $r = in_multi_array_value($needle, $v1); if ($r) {break;} } else if ($v1 === $needle) {$r = true; break;} } return $r; } ?> ---- Server IP: 206.189.2.9 Probable Submitter: 159.26.97.5 ---- Manual Page -- https://php.net/manual/en/function.in-array.php Edit -- https://main.php.net/note/edit/130631 Del: integrated -- https://main.php.net/note/delete/130631/integrated Del: useless -- https://main.php.net/note/delete/130631/useless Del: bad code -- https://main.php.net/note/delete/130631/bad+code Del: spam -- https://main.php.net/note/delete/130631/spam Del: non-english -- https://main.php.net/note/delete/130631/non-english Del: in docs -- https://main.php.net/note/delete/130631/in+docs Del: other reasons-- https://main.php.net/note/delete/130631 Reject -- https://main.php.net/note/reject/130631 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222525) next »