IsArray::check()

Not yet in a tagged release

Description

IsArray::check() - can a variable be used as a PHP array?

// as static function
use GanbaroDigital\MissingBits\TypeChecks\IsArray;
bool IsArray::check(mixed $fieldOrVar);

Parameters

IsArray::check() takes one parameter:

Return Value

IsArray::check() returns a boolean:

Throws

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

Works With

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

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