...
Code Block | ||
---|---|---|
| ||
$email = cValidatorFactory::getInstance('email'); var_dump($email->isValid('contenido@contenido.org')); |
The call of the isValid method above returns true.
Code Block | ||
---|---|---|
| ||
$email = cValidatorFactory::getInstance('email'); $email->isValid('contenido@@contenido.org'); |
The call of the isValid method above returns false.
Code Block | ||
---|---|---|
| ||
$regex = cValidatorFactory::getInstance('regex'); $regex->setOption('pattern', '/CONTENIDO/'); $regex->isValid('CONTENIDO 4.9'); |
...