> 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
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
> :)
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
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
4 matches
Mail list logo