php stripos() function

Demo :

The stripos() function is used to position of the first occurrence of a string inside another string.



Type Text : Find Position :

Example :

Type Text : PHP String Position Function.

Find Position Char : Po

If you need to find position of character following code usefull to you.


<?php
  $stringRep = "PHP String Position Function";
  $findPositionChar = "Po";
  $result = stripos($stringRep,$findPositionChar);
  echo $result;
?>

In the above code is used to find position of character .The sentence will pass to the stripos() function.Finally output will display "11".

In the strpos() function have three parameters that name is string haystack,string needle, int offset.

Free Download Script :

If you need strpos() function demo code click and download from following link.

Download




Content