Javatpoint Logo
Javatpoint Logo

PHP stripos() Function

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

Note: This function is case-insensitive and binary safe.


Parameter Description Required/Optional
string Specify the string to search. Required.
find Specify he string to find. Required.
start Specify where to begin the search. Optional.

Example 1



Example 2


Before stripos() function: PHP is My Fav Language
After using stripos(): 1

Note: There is one whitespace when PHP start so 'stripos() function is used to fiind the position of the first occurrence of "php" inside the string.

Next TopicPHP String

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA