strops() method is used to get the position of the first occurrence of a string inside another string.

Example

                                        

$mainString = 'Best Interview Question';
echo strpos($mainString, "Interview");
// OUTPUT : 5

Suggest An Answer

No suggestions Available!