Validate (main package)

The main package provides methods to validate various data. It includes :

  • numbers (min/max, decimal or not)

  • email (syntax, domain check)

  • string (predifined type alpha upper and/or lowercase, numeric,...)

  • date (date, options) - Options can be format (Format of the date (%d-%m-%Y) or rfc822_compliant), min (The date has to be greater than this array ($day, $month, $year) or PEAR::Date object), max (The date hast to be smaller than this array ($day, $month, $year) or PEAR::Date object)

  • uri (RFC2396)

  • possibility valid multiple data with a single method call (::multiple)

See also :

Содержание
    Поддержать сайт на родительском проекте КГБ