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

iphone - Using nested NSDictionary with Picker -

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

php - accessing mysql using different server to which db connection data is located -