FeaturePhp/Helper/_Array.php
public static function findByKey($array, $key, $value) {
        foreach ($array as $element)
            if (call_user_func(array($element, $key)) === $value)
                return $element;
        return null;
    }
public static function findByKey($array, $key, $value) {
        foreach ($array as $element)
            if (call_user_func(array($element, $key)) === $value)
                return $element;
        return null;
    }
public static function findByKey ( $ array , $ key , $ value ) { foreach ( $ array as $ element ) if ( call_user_func ( array ( $ element , $ key ) ) === $ value ) return $ element ; return null ; }
Finds an array element by comparing a member with the given value.
@param array $array
@param callable $key
@param mixed $value
@return object
Finds an array element by comparing a member with the given value .