For the stristr() function, here I only use examples to illustrate:
Parameters | Description |
---|---|
string | Required, the string being searched |
search | Required, the string to be searched |
before_search | optional, default false, returns the first occurrence of the string in the string string, itself and its end The remaining part of |
one:
<code><span>echo</span> stristr(<span>"google earch!!!"</span>,earch);</code>
<code><span>output</span>: <span>earch</span><span>!</span><span>!</span><span>!</span></code>
two:').text(i)); }; $numbering.fadeIn(1700); }); });<code><span>echo</span> stristr(<span>"google earch!!!"</span>,earch,<span>true</span>);</code>Copy after login').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i<code><span>output</span>: <span>google </span></code>Copy after login
The above introduces the PHP stristr function, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.