The Little Guy Posted February 8, 2011 Share Posted February 8, 2011 I would like to grab sections out of a body of text, but I am not sure how to get started with this... So, lets say I have an array of word to find in the doc $words = array_unique(array('the', 'squirrel', 'jumped', 'the', 'fence')); Using that array, I would like to get key section in the body of text (that was passed to the function) and get about 25 characters before the text and about 25 after. I want a maximum of three sections, and have them concatenated by some dots. basically it is the same look as google: Once located, block off all but one using flashing, wire fence or hardware cloth. .... If the squirrel is jumping from high to low, as from a tree Any Ideas how I could do something like this? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.