respect-validation/docs/rules/ArrayVal.md
Henrique Moody a009286ba6
Update "See also" section in the rules's documentation
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-12-11 13:19:52 +01:00

456 B

ArrayVal

  • v::arrayVal()

Validates if the input is an array or if the input can be used as an array (instance of ArrayAccess).

v::arrayVal()->validate([]); // true
v::arrayVal()->validate(new ArrayObject); // true

See also: