<?php
use App\StringLib as lib;
include_once "class/string.class.php";
$email = "[email protected]";
$a = new lib\ValidateString();
// Validate if email is valid
$b = $a->isEmail($email);
print '<br>Validate if email '.$email.' is valid: ';
var_dump ($b);
// Validate if email is valid and exists
$b = $a->isEmail($email, true);
print '<br>Validate if email '.$email.' is valid and exists: ';
var_dump ($b);
// Validate if email is valid and exists
$email = "[email protected]";
$b = $a->isEmail($email, true);
print '<br>Validate if email '.$email.' is valid and exists: ';
var_dump ($b);
?>
|