PHP stristr function

WBOY
Release: 2016-07-29 09:13:14
Original
1370 people have browsed it

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>
Copy after login
<code><span>output</span>: <span>earch</span><span>!</span><span>!</span><span>!</span></code>
Copy after login
two:

<code><span>echo</span> stristr(<span>"google earch!!!"</span>,earch,<span>true</span>);</code>
Copy after login
<code><span>output</span>: <span>google </span></code>
Copy after login
').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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template