Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
$email = cValidatorFactory::getInstance('email');
var_dump($email->isValid('contenido@contenido.org'));

 

 

The call of the isValid method above returns true.

Code Block
languagephp
$email = cValidatorFactory::getInstance('email');
$email->isValid('contenido@@contenido.org');

The call of the isValid method above returns false.

 

Code Block
languagephp
$regex = cValidatorFactory::getInstance('regex');
$regex->setOption('pattern', '/CONTENIDO/');
$regex->isValid('CONTENIDO 4.9');

...