From:             [EMAIL PROTECTED]
Operating system: RedHat Linux 7.2
PHP version:      4.2.0
PHP Bug Type:     Feature/Change Request
Bug description:  Not a bug, but an add-on...

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...
-- 
Edit bug report at http://bugs.php.net/?id=19920&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=19920&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=19920&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=19920&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=19920&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=19920&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=19920&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=19920&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=19920&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=19920&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=19920&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19920&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=19920&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=19920&r=isapi

Reply via email to