Source Code:
(back to article)
<?php $string = "The quick brown fox jumps over the lazy dog."; $substring = "fox"; if (stripos($string, $substring) !== false) { echo "The string '$substring' was found in the string '$string'"; } else { echo "The string '$substring' was not found in the string '$string'"; }
Result:
Report an issue