What alternative function could be used instead of strpos to improve the code's efficiency?

Using the `strpos` function to check for a substring in a string can be inefficient, especially if the string is large. An alternative function that could improve efficiency is `strstr` which returns the part of the string from the first occurrence of a substring to the end.

// Using strstr instead of strpos to improve efficiency
$haystack = "Hello, World!";
$needle = "World";

if (strstr($haystack, $needle)) {
    echo "Substring found!";
} else {
    echo "Substring not found!";
}