In PHP Strpos is the first place to find the string, if there is a return ture or related to the specific number, no return 0 or FALSE, but I want to use it to do a wordpress keyword blacklist anti-spam comments found some problems, below we
Modify theme comments-ajax.php filesIn the comments-ajax.php file under the topic directory, around 60 rows (fields such as $ _ POST ['author'] in the user submitted comment form were just obtained ). Then add the following code to the file:
This article to share the content is about PHP strpos function in-depth analysis, the content is very detailed, the need for friends can refer to, hope can help you.
Overview
In PHP strpos , it is often used to determine whether a string exists in
When we do the message board often need to block keywords Some keywords, below I introduce the use of TXT save to block the keyword, and then based on the user submitted data filtering.
First look at the Strpos function
The Strpos () function
First look at the Strpos function
The Strpos () function returns the position where the string first appears in another string.
If the string is not found, it returns false.
Grammar
Strpos (string,find,start) parameter descriptionString required.
Now the network information regulation is very strict, especially the shielding keyword. Especially now WEB2.0 times, the content of the website almost all comes from the Netizen publishes, Stationmaster manages can. If you want someone to stop
Php uses strpos to locate a string. Php: how to find the position of a string through strpos this article mainly introduces the method for php to find the position of a string through strpos. The example analyzes the functions and usage skills of
Strpos, Strstr and Stripos, stristr function Analysis in PHP, STRPOSSTRISTR
This article for you to analyze the PHP strpos, strstr and Stripos, Stristr function, for your reference, the specific content as follows
Strpos
Mixed Strpos (String
This article for everyone to analyze the PHP strpos, strstr and Stripos, Stristr function, for your reference, the specific contents are as follows
Strpos
Mixed Strpos (String $haystack, mixed $needle [, int $offset = 0])If offset is specified,
Strpos usage
Strpos (String,find,start)
Let's look at a piece of code Strpos:
Ajax get participlePublic Function Get_segment_words () {$title = I (' title ');$content = I (' content ');$Segment = M (' Segment ');$Segment _content = M ('
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.