[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, > "".$reserved_words."", $string) it showed Array instead of > word > if i simply do str_replace($reserved_words, $reserved_words, > $string) then it shows the words no

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] = ''.$value.''; } $string = str_replace($reserved_words, $reserved_words_bold,$string); olinux --- Gregor J <[EMAIL PROTECTED]> wrote: > Same as with ".$reserved_words.", i get Array > :)

[PHP] Re: str_replace question

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

[PHP] Re: str_replace question

2002-09-01 Thread CHAILLAN Nicolas
What about a str_replace($reserved_words, "$reserved_words",$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 "Gregor