- Output for 8.1.0 - 8.1.30, 8.2.0 - 8.2.24, 8.3.0 - 8.3.12
- 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;
}