Email Validation in PHP

Email Validation in PHP function email_validation($email){ if(ereg(“^[^@ ]+@[^@ ]+.[^@ ]+$”,$email,$trashed)){ return true; }else{ return false; } }

Read more

Phone Validation in PHP

Phone Validation in PHP function phone_validation($phone){ if(preg_match(‘/^[0-9]{10||11}$/’, $phone)){ return true; }else{ return false; } }

Read more