I have an array that also contains regex special characters in its some values, I want to implode()
it so that special characters in its some values escape using preg_quote()
Here is what I tried
$arr = array("+1", "1+4");
echo implode("|", $arr);
I want escaped output like this
\+1|1\+4|