rfc:functional-elements:is-traversable

function is_traversable()

Prototype

bool is_traversable(mixed $list)

Example implementation

function is_traversable($iterator)
{
    return is_array($iterator) or $iterator instanceof Traversable;
}
rfc/functional-elements/is-traversable.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1