Code: Select all
$newfile = str_replace(" ", "\ ", $text);
$newfile2 = str_replace("^", "\^", $newfile1);
$newfile3 = str_replace("&", "\&", $newfile2);Edit: I want to replace the following caracters (I could post all of them, due to some mysql error):
empty space
^
&
[
]
(
)
{
}
+
!
?
=
´
#
$