IsList::check()

Since v1.9.0

Description

IsList::check() - do we have a valid PHP list?

use GanbaroDigital\MissingBits\TypeChecks\IsList;
bool IsList::check(mixed $list);

Parameters

IsList::check() takes one parameter:

Return Value

IsList::check() returns a boolean:

PHP Type Returns
array true
Closure object false
any other object true
anything else false

Throws

IsList::check() does not throw any exceptions.

Works With

IsList::check() is supported on these versions of PHP:

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