how i can check a value in PHP string that it's exists or not while when is use strpos() function then i face a problem when i check in a string suppose i have a string I m a Programmer then if i check Pro then strpos show its index value
<?php
$string="I m Programmer";
$found="Prog";
echo strpos($string,$found);
?>
strpos() show Porg index value while i want if Prog word exists in string then show index value if its not then should be show nothing because i want match Programmer work fully not Prog