Best way...

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I read records on a DB and concat the content to a string to write to the

I'd like to add a new feature.
If the content contains some word (prefilled list), then I must apply some
formatting (<b> tag)

My question is:
What is the better and faster way to do so ?
Should I fill a array and try with "in_array" function ?

It's there a better way ?

Re: Best way...

from Bob Bedford contained the following:

Quoted text here. Click to load it

str_replace() will accept arrays.

Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs /

Site Timeline