Drew
0
Q:

strlimit php

$return_string = substr("Hi i am returning first 10 characters.", 0, 10);
Output:
"Hi i am re"
2

<?php

echo substr("Hello world",6);

?> 
0
<?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
?>
0

New to Communities?

Join the community