[PHP] str_replace question

2002-09-01 Thread Gregor Jak¹a
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 not Array but

[PHP] help with preg_replace()

2002-07-01 Thread Gregor Jak¹a
ive been tryin to find a solution for this problem for some hours now, but i just dont know how to do it... so i ask for ur assistance. Lemme list some examples, so u can see what im tryin to do :) "word" = "word" >word = >| word | "word = >|word | "word it should replace it with >|word | and so o