$return_string = substr("Hi i am returning first 10 characters.", 0, 10); Output: "Hi i am re"
<?php echo substr("Hello world",6); ?>
<?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 ?>