SproutCMS

This is the code documentation for the SproutCMS project

function length()

Checks the length of a string is within an allowed range

Usage

void Validity::length ( string $val , int $min , int $max );

Example

$valid->check('name', 'Validity::length', 1, 100)

Arguments

  1. string $val
    The value
  2. int $min
    Minimum length
  3. int $max
    Maximum length

Exceptions thrown

Return value

  • void