Source Code:
(back to article)
<?php $string = 'The quick brown fox jumps over the lazy dog'; if (strpos($string, 'fox') !== false) { echo 'The string contains the word fox'; } else { echo 'The string does not contain the word fox'; }
Result:
Report an issue