what is the syntax if the STRIPOS() function in php?
stripos(string,find,start)
Parameter | Description |
---|---|
string | Required. Specifies the string to search |
find | Required. Specifies the string to find |
start | Optional. Specifies where to begin the search |
examples of the STRIPOS() function
Example 1. In this example, we find the position of the first occurrence of “php” inside the string.
<?php
echo stripos("I love php, I love php too!","PHP");
?>