The String position - strpos function is used to locate and return the position of a character(s) within the string.
Sphp script Syntax :
The first argument defines the text.
Second argument finds where the particular text is in the string.
Third argument is optional that defines where to begin the search.
php 7 Sample Code : sample php program
php programmer Code Explanation :
In this example we use the string positon function the first parameter define the content “welcome to wikitechy” and the second parameter is positon of the finding the content as “wikitechy”.
php development Sample Output :
Output -> we have shown the string position function, where we found that “Wikitechy” is appearing after the 11th position in the given statement “welcome to wikitechy “.