strpos() helps to find the position of the first occurrence of a substring in a string.
<?php
echo strpos(“Welcome to the php world”,”php”);
?>
Output : 15
strpos() helps to find the position of the first occurrence of a substring in a string.
Output : 15