Re: str_replace question
| From: | Gregor J | Date: | Sun, 01 Sep 2002 22:06:15 +0000 |
| Subject: | Re: str_replace question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114852@lists.php.net to get a copy of this message | ||
Same as with <b>".$reserved_words."</b>, i get Array :)
"Chaillan Nicolas" <nicos@php.net> wrote in message
news:20020901211503.80128.qmail@pb1.pair.com...
> 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
> nicos@worldakt.com
> nicos@php.net
> www.GroupAKT.com - Hébergement Group.
> www.WorldAKT.com - Hébergement de sites Internet
> "Gregor Jak¹A" <gre-gor@delphi-si.com> a écrit dans le message de news:
> 20020901205050.69029.qmail@pb1.pair.com...
> > 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 !
> >
> >
>
>