On this page
Caution
The documentation you are viewing is for an older version of this component.
Switch to the latest (v3) version.
Validators
IsArray Validator
- Since 2.52.0
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