src/Common/Helper/ArrayHelper.php
public static function arraySearchMulti($sValue, $sKey, array $aArray)
    {
        foreach ($aArray as $k => $val) {

            if (is_array($val)) {

                if ($val[$sKey] == $sValue) {
                    return $k;
                }

            } elseif (is_object($val)) {
                if ($val->$sKey == $sValue) {
                    return $k;
                }
            }
        }
        return false;
    }
public static function arraySearchMulti($sValue, $sKey, array $aArray)
    {
        foreach ($aArray as $k => $val) {

            if (is_array($val)) {

                if ($val[$sKey] == $sValue) {
                    return $k;
                }

            } elseif (is_object($val)) {
                if ($val->$sKey == $sValue) {
                    return $k;
                }
            }
        }
        return false;
    }
public static function arraySearchMulti ( $ sValue , $ sKey , array $ aArray ) { foreach ( $ aArray as $ k => $ val ) { if ( is_array ( $ val ) ) { if ( $ val [ $ sKey ] == $ sValue ) { return $ k ; } } elseif ( is_object ( $ val ) ) { if ( $ val -> $ sKey == $ sValue ) { return $ k ; } } } return false ; }
Searches a multi-dimensional array

@param string $sValue Search value
@param string $sKey   Key to search
@param array  $aArray The array to search

@return mixed         The array key on success, false on failure
Searches a multi - dimensional array