src/Toolbox/ArrayUtils.php
public static function hasKeys(array $haystack)
    {
        $fails = false;
        $keys = func_get_args();
        array_shift($keys);

        foreach ($keys as $key) {
            if (!array_key_exists($key, $haystack)) {
                $fails = true;
                break;
            }
        }

        return !$fails;
    }
public static function hasKeys(array $haystack)
    {
        $fails = false;
        $keys = func_get_args();
        array_shift($keys);

        foreach ($keys as $key) {
            if (!array_key_exists($key, $haystack)) {
                $fails = true;
                break;
            }
        }

        return !$fails;
    }
public static function hasKeys ( array $ haystack ) { $ fails = false ; $ keys = func_get_args ( ) ; array_shift ( $ keys ) ; foreach ( $ keys as $ key ) { if ( ! array_key_exists ( $ key , $ haystack ) ) { $ fails = true ; break ; } } return ! $ fails ; }
Ensures that specified keys exists in the array

@param array $haystack
@return bool
Ensures that specified keys exists in the array