|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-15 14:15 UTC] webmaster at tsn dot dk
[2002-10-15 22:39 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 01 08:00:01 2026 UTC |
I have a small snippit of code that I believe people would find very useful, however I was unsure as to where to stick it. function array_multisearch($needle, $haystack, $strict = FALSE) { for ($x = 0; $x < count($haystack); $x++) { if (array_search($needle, $haystack[$x], $strict)) {return $x;} } } This function allows for arrays of hash-arrays kind of searching...