Recently in refactoring the old project code, found that the check-in parameter occupies a lot of code, before I know this piece of knowledge is limited to using stringutils and other tools to judge multiple if blocks, the code is not a problem, but
Copy codeThe Code is as follows:/// /// Check whether the entered email address strEmail is valid. If it is invalid, true is returned./// Public bool CheckEmail (string strEmail){Int I, j;String strTmp, strResult;String strWords =
Before php5.2 if we want to verify that the IP address is valid we need to use the regular to verify that this is only the IP address is not legal, if it is valid we need to call Ping to operate, but after php5.2.0, there is a special function to do
Before php5.2, if we want to verify whether the IP address is valid, we need to use regular expressions to verify that the IP address is valid. If it is valid, we need to call ping, but after php5.2.0, there are special functions to make this
A small function used to check whether the email address is a valid email address.
/*
// Function name: CheckEmailAddr ($ C_mailaddr)
// Usage: determines whether the email address is a valid email address.
Php checks and verifies that the IP address is a valid IP address. Before php5.2, if we want to verify whether the IP address is valid, we need to use regular expressions to verify that the IP address is valid. if it is valid, we need to call ping,
Php determines that the IP address is a valid IP address.
When most people see this log, the first impression must be about how to use regular expressions to determine.
No. After php5.2.0, a special function is provided for this judgment.
Determine
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.