strpos in php
$string = "Hello, world!";
$substring = "world";
$position = strpos($string, $substring);
if ($position !== false) {
echo "The substring was found at position: " . $position;
} else {
echo "The substring was not found in the string.";
}