What potential pitfalls should be considered when using strpos in PHP for word matching?

When using `strpos` in PHP for word matching, it's important to consider that it is case-sensitive. To avoid potential issues with case sensitivity, you can use `stripos` instead, which performs a case-insensitive search. This ensures that the word matching is not affected by the case of the characters.

$text = "Hello World";
$word = "hello";

if (stripos($text, $word) !== false) {
    echo "Word found in text.";
} else {
    echo "Word not found in text.";
}