highlight search word
Posted: Sun Jan 16, 2005 5:06 pm
Can anyone point me in a right direction on how to highlight a word that user has been searching for ?
thank you
Greg
thank you
Greg
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
Original text: Foo is something bar I say! Har har...
Searching for: bar
New text after str_replace: Foo is something <b class="h">bar</b> I say! Har har...