PHP email Validation of IBM email only, (World wide) -
i pretty new php, how validate email address have ibm domain only? valid address are:
xxxxx@us.ibm.com xxxxx@in.ibm.com xxxxx@ro.ibm.com xxxxx@ibm.com
the php should able accept of above.
please help
thanks
split on @ verify regex.
list($username,$domain) = explode('@',$email); if (preg_match('/ibm\.com$/',$domain)) { echo "yup it's ibm."; }
Comments
Post a Comment