0

I have PHP code as follows:

$arr = array('url' => 'https://google.com/test');
echo json_encode($arr);

It's echoing:

{"url":"https:\/\/google.com\/test"}

How can I parse the URL correctly?

Pang
  • 9,564
  • 146
  • 81
  • 122
ankit
  • 19
  • 1

0 Answers0