PHP stripos() FunctionThe 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.Syntax:
Example 1Output: 0 Example 2Output: 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.Reference: http://php.net/manual/en/function.stripos.phpNext TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India