<?php $string = 'Hello World!'; if(stristr($string, 'terre') === FALSE) { echo '"terre" non trouvé dans la chaîne de caractères'; } // affiche : "terre" non trouvé dans la chaîne de caractères ?>
stristr ( string $haystack , mixed $needle [, bool $before_needle = FALSE ] ) : string