YaLinqo\Enumerable::toListDeep PHP Method

toListDeep() public method

Syntax: toListDeep ()

The toListDeep method forces immediate query evaluation and returns an array that contains the query results.

The toListDeep method traverses into elements of the sequence. That is, if elements of the sequence are {@link Traversable} or arrays containing Traversable values, they will be converted to arrays too. To convert only the sequence itself, you can use {@link toList} method.

Keys from the sequence are discarded. To preserve keys and lose values with the same keys, you can use {@link toArrayDeep} method. To preserve all values and keys, you can use {@link toLookup} method.

public toListDeep ( ) : array
return array An array that contains the elements from the input sequence.
    public function toListDeep()
    {
        return $this->toListDeepProc($this);
    }