On this page

Validators

IsArray Validator

Laminas\Validator\IsArray checks that a given value is an array. There are no options.

Example Usage

$validator = new Laminas\Validator\IsArray();

$validator->isValid('Not an Array'); // false
$validator->isValid(['Any Array']); // true