SproutCMS

This is the code documentation for the SproutCMS project

function inArray()

Checks a value is one of the allowed values

Usage

void Validity::inArray ( string $val , array $allowed );

Example

$valid->check('vowel', 'Validity::inArray', ['a', 'e', 'i', 'o', 'u'])

Arguments

  1. string $val
  2. array $allowed

Exceptions thrown

Return value

  • void