Php string handling tricks

Posted by Dam on Stack Overflow See other posts from Stack Overflow or by Dam
Published on 2010-03-29T09:50:04Z Indexed on 2010/03/29 11:53 UTC
Read the original article Hit count: 204

Filed under:

Hi my question

Need to get the 10 word before and 10 words after for the given text . i mean need to start the 10 words before the keyword and end with 10 word after the key word.

Given text : "Twenty-three"

The main trick : content having some html tags etc .. tags need to keep that tag with this content only . need to display the words from 10before - 10after

content is bellow :

removed

Thank you

© Stack Overflow or respective owner

Related posts about php