In the data, the system will output ' boy@163.com ' completely. If it is in the wrong format, such as ' Boy ', it will output false. If you do not fill out the email field in the form, the system outputs null, which is empty.
Fourth, PHP filter filters the contents of the input variables as required
The only difference from the above is that the second parameter uses filter_sanitize_email, and the output will be different. Let's say you send a field via the form's post to email.
If the data is similar to ' boy@163.com ', the system will output ' boy@163.com ' completely. If it is the wrong format, such as ' boy-afds3′, as long as the numbers and letters and dashes and other email formats can appear, the system will also complete output ' boy-afds3′. If you do not fill out the email field in the form, the system outputs null, which is empty. If it is ' Boy three ', the system will be the email format is not allowed to remove things, output ' boy '.
- Echo Filter_input
Filter_sanitize_email);
The above is the specific function of PHP filter, I hope that the need for a friend to help.
http://www.bkjia.com/PHPjc/446194.html www.bkjia.com true http://www.bkjia.com/PHPjc/446194.html techarticle in the data, the system will complete the output boy@163.com. If it is in the wrong format, such as boy, it will output false. If you do not fill out the email field in the form, the system outputs NULL, ...