Home > Article > Backend Development > PHP stristr function
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><code><span>output</span>: <span>google </span></code>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i
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.