Checks each value of an array is one of the allowed values
This is the code documentation for the SproutCMS project
Search documentation |
function allInArray()Checks each value of an array is one of the allowed values
Usagevoid Validity::allInArray ( array $val , array $allowed ); Example$_POST['vowels'] = ['a', 'i'] $valid->check('vowel', 'Validity::allInArray', ['a', 'e', 'i', 'o', 'u']) Arguments
Exceptions thrownReturn value
|
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |