How to find the position of the first occurrence of a substring in a string using PHP ?

strpos() helps to find the position of the first occurrence of a substring in a string.

strpos()
<?php
echo strpos(“Welcome to the php world”,”php”);
?>

Output : 15