It finds the position of the first occurrence of a substring in a string
Example
<?php
echo strpos(“phpcode”,”co”);
?>
Output
3
It finds the position of the first occurrence of a substring in a string
Example
<?php
echo strpos(“phpcode”,”co”);
?>
Output
3