Jump to content

question


Ninjakreborn

Recommended Posts

if you search the manual for the function stristr

"Returns all of haystack from the first occurrence of needle to the end. needle and haystack are examined in a case-insensitive manner."

[code]
<?php
  $string= 'this is a string';
  echo stristr($string, 'a');
// outputs "a string"
?>
[/code]

basically, it searches the string for the first time that the 2nd value "needle" appears and then shows everything from that point on
Link to comment
https://forums.phpfreaks.com/topic/7905-question/#findComment-28802
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.