snippet generation in php

Posted by daniel on Stack Overflow See other posts from Stack Overflow or by daniel
Published on 2010-04-08T21:56:37Z Indexed on 2010/04/08 22:03 UTC
Read the original article Hit count: 329

Filed under:
|
|

Hi,

I have a long chunk of text that came back from a search query. I'd like to display a snippet of the text, not the entire thing, and highlight the search query within the snippet. I realize that decided what part of the text to slice can be complicated, and I was hoping for any ideas on how do to this?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about snippets