- Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1 - 8.4.2
- Did not detect "Hello" in string (default) Did not detect "Hello" in string (loose equality)
<?php
$string = 'Hello, there!';
if (!strpos($string, 'Hello')) {
echo 'Did not detect "Hello" in string (default)' . PHP_EOL;
}
if (false == strpos($string, 'Hello')) {
echo 'Did not detect "Hello" in string (loose equality)' . PHP_EOL;
}
if (false === strpos($string, 'Hello')) {
echo 'Did not detect "Hello" in string (strict equality)' . PHP_EOL;
}