I tried to remove the special character \ from a string. Below is my code:
$str = "Hello\world. It's a beautiful day.";
$str= (explode("\",$str));
echo $str[0];
However i receive an error in the second lineand the issue is the special character
Any suggestions? Thanks in advance.