public static function arrExclude(array $arr, array $excludeKeys)
    {
        $result = [];
        foreach ($arr as $key => $val) {
            if (!in_array($key, $excludeKeys)) {
                $result[$key] = $val;
            }
        }
        return $result;
    }
public static function arrExclude(array $arr, array $excludeKeys)
    {
        $result = [];
        foreach ($arr as $key => $val) {
            if (!in_array($key, $excludeKeys)) {
                $result[$key] = $val;
            }
        }
        return $result;
    }
public static function arrExclude ( array $ arr , array $ excludeKeys ) { $ result = [ ] ; foreach ( $ arr as $ key => $ val ) { if ( ! in_array ( $ key , $ excludeKeys ) ) { $ result [ $ key ] = $ val ; } } return $ result ; }
Return all array elements except for a given key
@param array $arr
@param array $excludeKeys
@return array
Return all array elements except for a given key