I read records on a DB and concat the content to a string to write to the
browser.
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 ?
browser.
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 ?
Comment