php - need help with using stristr -


i need return after "i can read." understand search string , find whats in array $check how make check , return whats found after "i can read"?

$string = "i can read. can count. can spell."; $check = array("i can count.", "i can't count."); $find = stristr($string, $check, true); echo $find; 

$find = 'i can read.'; $string = '[...]';  echo substr($string,stripos($string,$find)+strlen($find)); 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -