<?php
$string = 'abc';
$find = 'b';
$pos = strpos($string, $find);
if ($pos === false) {
echo "The string '$find' was not found in the string '$string'";
} else {
echo "The string '$find' was found in the string '$string'";
echo " and exists at position $pos";
}
?>