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:
true
if every entry in$list
can be used as a PHP arrayfalse
otherwise
Throws
IsArray::checkList()
throws an InvalidArgumentException
if:
$list
is 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 |