I am trying to remove all backslashes from a string with a url extension, but it outputs \ instead of outputting a string with a url extension with \ removed.
Please tell me my problem.
<?php
$json = $_GET['ingredients'];
echo urldecode(str_replace($json,$json, "\\"));
?>
source
share