IsArray::checkList()
Not yet in a tagged release
Description
IsArray::checkList() - is every entry in the list a PHP array?
use GanbaroDigital\MissingBits\TypeChecks\IsArray;
bool IsArray::checkList(mixed $list);
Parameters
IsArray::checkList() takes one parameter:
mixed $list- the list of values to inspect
Return Value
IsArray::checkList() returns a boolean:
trueif every entry in$listcan be used as a PHP arrayfalseotherwise
Throws
IsArray::checkList() throws an InvalidArgumentException if:
$listis not a valid list (seeIsList::check()for details)
Works With
IsArray::checkList() is supported on these versions of PHP:
| PHP Version | Works? |
|---|---|
| 5.5 | Yes |
| 5.6 | Yes |
| 7.0 | Yes |
| HHVM | Yes |