Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 392 Bytes

FilterVar.md

File metadata and controls

16 lines (11 loc) · 392 Bytes

FilterVar

  • v::filterVar(int $filter)
  • v::filterVar(int $filter, mixed $options)

A wrapper for PHP's filter_var() function.

v::filterVar(FILTER_VALIDATE_EMAIL)->validate('bob@example.com'); //true
v::filterVar(FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)->validate('http://example.com'); //true

See also: