Why is it recommended not to use preg_match() for simple substring checks in PHP and use functions like strpos() or strstr() instead?

Using `preg_match()` for simple substring checks in PHP is not recommended because regular expressions are more resource-intensive compared to using functions like `strpos()` or `strstr()`. For simple substring checks, using these functions is more efficient and faster.

// Using strpos() for simple substring check
$string = "Hello, world!";
$substring = "Hello";

if (strpos($string, $substring) !== false) {
    echo "Substring found!";
} else {
    echo "Substring not found!";
}