src/ArrayUnion.php
public function getKeys() {
        $keys = [];
        foreach($this->arrays as $array) {
            $keys = array_merge($keys, $array instanceof \ArrayAccess ? $array->getKeys():array_keys($array));
        }
        return array_unique($keys);
    }
public function getKeys() {
        $keys = [];
        foreach($this->arrays as $array) {
            $keys = array_merge($keys, $array instanceof \ArrayAccess ? $array->getKeys():array_keys($array));
        }
        return array_unique($keys);
    }
public function getKeys ( ) { $ keys = [ ] ; foreach ( $ this -> arrays as $ array ) { $ keys = array_merge ( $ keys , $ array instanceof \ ArrayAccess ? $ array -> getKeys ( ) : array_keys ( $ array ) ) ; } return array_unique ( $ keys ) ; }
Get a list of all defined keys.
@return string[] Keys.
Get a list of all defined keys .