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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -