protected function extractKeys($array): array
    {
        $result = [];
        foreach ($array as $key=>$val) {
            if (is_int($key)) {
                $result[$val] = [];
            } else {
                $result[$key] = $val;
            }
        }

        return $result;
    }
protected function extractKeys($array): array
    {
        $result = [];
        foreach ($array as $key=>$val) {
            if (is_int($key)) {
                $result[$val] = [];
            } else {
                $result[$key] = $val;
            }
        }

        return $result;
    }
protected function extractKeys ( $ array ) : array { $ result = [ ] ; foreach ( $ array as $ key => $ val ) { if ( is_int ( $ key ) ) { $ result [ $ val ] = [ ] ; } else { $ result [ $ key ] = $ val ; } } return $ result ; }
Will extract non-numeric keys from the array.

@param $array

@return array
Will extract non - numeric keys from the array .