PHP strpos() string function

The strpos() function in PHP

The strpos() function used to searches the specific text in given string, if found then return start position of matches text, other wise returns false.

strpos() function syntax

strpos(“string”, “search string”);

PHP strpos() function example

The out put of strpos() is:

The strpos() answer = 6

The strpos() string function php from  example

The php strpos() string function output is :

PHP strpos() string function

PHP strpos() string function

Leave a Reply

Your email address will not be published. Required fields are marked *

4 + 2 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">