I think this question is gunna be painfully easy to answer, but i cant find the solution anywhere.
Ive got a string that has text and | signs. I want to replace the | signs with a whitespace. Ive found the HTML code for it: | ;
But when I try to preg_replace it, they're still there.
$strip = array ("'|'");
$replace = " ";
$body = preg_replace($strip, $replace, $body);
Can anyone help?