For the Stristr () function, I'll just use an instance to illustrate:
Parameters |
Description |
String |
The string that must be searched for |
|
|
Search |
The string that must be searched for |
|
|
Before_search |
Optional, default false, which returns the first occurrence of a string in string strings, itself and the remainder of its end, true, which returns the string portion of the string before the first occurrence |
Note: the Stristr () function is not distinguished, the string case is case-sensitive, use the STRSTR () function
For Example:
One
echo stristr("google earch!!!",earch);
outputearch!!!
Both:
echo stristr("google earch!!!",earch,true);
outputgoogle
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the PHP stristr function, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.