when i want to echo data from json with a / in it, it puts a backslash for the /.
How to remove the backslash?
This:
$data = [ "actualdir" => "uploads/aaa" ]; echo json_encode($data); gives me this as output:
{"actualdir":"uploads\/aaa"} And it should be:
{"actualdir":"uploads/aaa"} How can i achieve this?