[PHP] Re: str_replace question

2002-09-02 Thread Erwin
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 bword/b if i simply do str_replace($reserved_words, $reserved_words, $string) then it shows the words not

[PHP] Re: str_replace question

2002-09-01 Thread CHAILLAN Nicolas
What about a str_replace($reserved_words, b$reserved_words/b,$string); Tell me. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet

[PHP] Re: str_replace question

2002-09-01 Thread Gregor J
Same as with b.$reserved_words./b, i get Array :) Chaillan Nicolas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What about a str_replace($reserved_words, b$reserved_words/b,$string); Tell me. -- Merci de nous avoir choisi. - Thanks you for your choice.

Re: [PHP] Re: str_replace question

2002-09-01 Thread olinux
something like this should do foreach ($reserved_words as $key = $value) { $reserved_words_bold[$key] = 'b'.$value.'/b'; } $string = str_replace($reserved_words, $reserved_words_bold,$string); olinux --- Gregor J [EMAIL PROTECTED] wrote: Same as with b.$reserved_words./b, i get Array :)