rfc:functional-elements:is-traversable

This is an old revision of the document!


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.1205677697.txt.gz · Last modified: 2017/09/22 13:28 (external edit)