The system will output 'Boy @ 163.com 'in full '. If the format is incorrect, for example, 'Boy ', false is output. If the email field is not filled in the form, the system outputs null, that is, null.
Echo filter_input (INPUT_POST,'Email ',
PHP Filtering HTML PHP Filter HTML code Filter HTML ASP filter the HTML filter the Code filter HTML tag ASP filter HTML code
Function uh ($STR){
$tarr = Array (" ","",//If you want to clear unsafe labels directly, you can leave this blank"\\1\\2",);
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.
1. Filter the reason for emoji expression In our project development, emoji expression is a troublesome thing, even if we can store it, it doesn't have to be perfect, because it's updated fast: On platforms other than iOS, such as PC or Android. If
Introduction to PHP Filter
The PHP filter is used to validate and filter data from unsecured sources, such as user input.
Copy Code code as follows:
Remove HTML tags, or remove coded special characters
Var_dump (Filter_var (" Chinese
PHP Filter function code for HTML tags this article provides four of PHP filtering HTML tag function code, one of the simplest use of PHP's own function strip_tags to filter all HTML tags, method two using regular expressions to filter the HTML tags,
Dangerous code form submission for php filter form submission if the security is poor, it is easy to cause the website to be attacked because of this form submission, next, I will share two examples of dangerous code submitted by common php filter
PHP Filter Empty array method and filter array empty element filter empty array method I have three examples below, one is for,foreach,array_filter to handle, see the example below
PHP Tutorial Filter Empty array method and filter array to empty
PHP filter does not exist in the picture resources,
Method One:
The simplest way is to use fopen (), to see if the file can be opened, can hit the file of course exists.
Method Two:
/** * Filter for non-existent picture resources * *
PHP Filter Library (extensions related to variables and types) to filter common mail, IP, array of variables, etc.
?
Introduction to the Filter extension library
?
This extension filters data by either validating or sanitizing it. This is
1. Filter the reason for emoji expressionIn our project development, emoji expression is a troublesome thing, even if we can store it, it doesn't have to be perfect, because it's updated fast: On platforms other than iOS, such as PC or Android. If
Php filter implementation code. In the past, a user obtained information through the network. Today's network is focusing more on interaction with users. users are no longer just Site viewers, but also the creators of website content. in the past, a
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.