\Anax\ValidateCValidate

A helper to validate variables.

Summary

Methods
Properties
Constants
check()
No public properties found
REGEXP_EMAIL
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

REGEXP_EMAIL

REGEXP_EMAIL

Properties

Methods

check()

check(mixed  $value, string  $rules, boolean  $throws = false) : boolean

Check if a value matches rules or throw exception.

Parameters

mixed $value

to check

string $rules

to apply when checking value

boolean $throws

set to true to throw exception when check fails

Throws

\Anax\Validate\Exception

when check fails

Returns

boolean —

true or false