str_replace question
| From: | Gregor Jak�a | Date: | Sun, 01 Sep 2002 20:50:50 +0000 |
| Subject: | str_replace question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114845@lists.php.net to get a copy of this message | ||
Hello, i have array $reserved_words which i want to replace with bold ..
but when i tried to do str_replace($reserved_words,
"<b>".$reserved_words."</b>", $string) it showed Array instead of
<b>word</b>
if i simply do str_replace($reserved_words, $reserved_words, $string) then
it shows the words not Array but not in bold ;)
I know i could use 2 arrays one with bold words one without or i could use
foreach but i want a simpler solution :)... Any suggestions ?
thx in advance !