Monday, December 9, 2013

Check email validation with Preg_Metch

<?php


//// check email validation with  preg_metch




function checkEmail($email){
  return preg_match('/^\S+@[\w\d.-]{2,}\.[\w]{2,6}$/iU', $email) ? TRUE : FALSE;
}



?>

No comments:

Post a Comment