hisham
IS-IT--Management
- Nov 6, 2000
- 194
how can i print a part of the text starting form a given keyword? (Yahoo like search)
e.g.:
i have this text:
--------------------------------------------
This PHP function lets you easily highlight e.g. search results on a specific website. Just pass the words to highlight, the path of the page (server path) and the color to highlight with. The extraordinary property about this function is that it manages not to perform replacements inside HTML tags (which could also include the word to highlight.
--------------------------------------------
and i want to print starting the keword ( results) and ending after 10 words or 100 characters :
--------------------------------------------
results on a specific website. Just pass the words to ...
--------------------------------------------
Thanks in advance
e.g.:
i have this text:
--------------------------------------------
This PHP function lets you easily highlight e.g. search results on a specific website. Just pass the words to highlight, the path of the page (server path) and the color to highlight with. The extraordinary property about this function is that it manages not to perform replacements inside HTML tags (which could also include the word to highlight.
--------------------------------------------
and i want to print starting the keword ( results) and ending after 10 words or 100 characters :
--------------------------------------------
results on a specific website. Just pass the words to ...
--------------------------------------------
Thanks in advance