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