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

BY Best Interview Question ON 31 Mar 2019

Example

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