src/Categories/Inspectors.php
public static function haveSameKeys(array $array1, array $array2)
    {
        return self::hasAllKeys($array1, array_keys($array2)) && self::hasAllKeys($array2, array_keys($array1)) ? true : false;
    }
public static function haveSameKeys(array $array1, array $array2)
    {
        return self::hasAllKeys($array1, array_keys($array2)) && self::hasAllKeys($array2, array_keys($array1)) ? true : false;
    }
public static function haveSameKeys ( array $ array1 , array $ array2 ) { return self :: hasAllKeys ( $ array1 , array_keys ( $ array2 ) ) && self :: hasAllKeys ( $ array2 , array_keys ( $ array1 ) ) ? true : false ; }
Checks if two arrays have all equal keys

@param array $array1
@param array $array2

@return boolean
Checks if two arrays have all equal keys