Login   Register  
PHP Classes
elePHPant
Icontem

File: teste.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Felipe Massariol  >  Validation Email  >  teste.php  >  Download  
File: teste.php
Role: Example script
Content type: text/plain
Description: Teste de uso da classe
Class: Validation Email
Validate an email address format and the domain
Author: By
Last change: Using now strategy pattern to validation.
Date: 2013-11-02 10:12
Size: 453 bytes
 

Contents

Class file image Download
<?php
include_once('iAlgorithmValidationDomain.php');
include_once(
'ValidationEmail.php');
include_once(
'SocketValidationDomain.php');



$listEmail = array(
    
'teste@gmail.com',
    
'teste@gmail23883273.com',
    
'facebook@testeinexistentegmail.com',
    
'facebook@uol.com.br'
    
);

foreach(
$listEmail as $key => $value)
{
    echo 
"Email: {$value} é válido: " ValidationEmail::validateEmail($value, new SocketValidationDomain()) . '</br>';
}

?>