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

javascript - Iterate over array and calculate average values of array-parts -

php - Time zone issue -

iphone - Using nested NSDictionary with Picker -