PHP Verification Mailbox and IP address the simplest method summary, IP simplest
In the development of the verification of mailboxes, URLs, numbers are some of our common examples, the following collation of the verification mailbox, URL, digital programs, we are interested to refer to.
The example code is as follows:
add: use PHP's own function to operate.
PHP verification Mailbox, the code is as follows:
$email = ' fengdingbo@gmail.com ';
PHP validates the URL address with the following code:
PHP validates the IP address with the following code:
$url = "192.168.1.110"; $result = Filter_var ($url, FILTER_VALIDATE_IP); Var_dump ($result); String (13) "192.168.1.110"//This method can also be used to validate IPv6. $url = "2001:db8:2de::e13"; $result = Filter_var ($url, FILTER_VALIDATE_IP); Var_dump ($result); String ("2001:db8:2de::e13")
The above is the simplest way to verify the email and IP address of PHP, hoping to help you learn.
http://www.bkjia.com/PHPjc/1066500.html www.bkjia.com true http://www.bkjia.com/PHPjc/1066500.html techarticle PHP Verification Mailbox and IP address the simplest method summary, IP simplest in the development of verification mailbox, URL, numbers are some of our common examples, the following collation of the verification mailbox, URL, digital program, ...