Home  >  Article  >  Backend Development  >  PHP stristr function

PHP stristr function

WBOY
WBOYOriginal
2016-07-29 09:13:141358browse

For the stristr() function, here I only use examples to illustrate:

For Example:
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:

<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
').text(i)); }; $numbering.fadeIn(1700); }); });

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn