stripos()

It returns the position of the first occurrence of a string inside another string

Example

<?php
echo stripos(“phpcode”,”code”);
?>

Output

3

Share