IsListyObject::checkList()

Since v1.9.0

Description

IsListyObject::checkList() - is every item in the list an object that's a valid PHP list?

use GanbaroDigital\MissingBits\TypeChecks\IsListyObject;
bool IsListyObject::checkList(mixed $list);

Parameters

IsListyObject::checkList() takes one parameter:

Return Value

IsListyObject::checkList() returns a boolean:

Throws

IsListyObject::checkList() throws an InvalidArgumentException if:

Works With

IsListyObject::checkList() is supported on these versions of PHP:

PHP Version Works?
5.5 Yes
5.6 Yes
7.0 Yes
HHVM Yes