Grab x number of words before and after a given keyword?

ltogousazout

New Member
How can I go about grabbing [x] number of words before and after a given keyword in a string in PHP? I am trying to tokenize results from a mysql query tailored to the keyword as a snippet.
 
Back
Top