Versions Compared

Key

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

...

Method nameDescriptionExample
   
   
   
   
   
   
   
   
   
   
   
   
   
   

 

How to use

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

 

 

 

 

Code Block
languagephp
$email = cValidatorFactory::getInstance('email');
$email->isValid('contenido@@contenido.org');
Code Block
languagephp
$regex = cValidatorFactory::getInstance('regex');
$regex->setOption('pattern', '/CONTENIDO/');
$regex->isValid('CONTENIDO 4.9');
Code Block
languagephp
$regex = cValidatorFactory::getInstance('regex');
$regex->setOption('pattern', '/CONTENIDO/');
$regex->isValid('CONDENITO 4.9');

Adding validator classes