fork download
  1. <?php
  2. $json = '{"episode_url":"https://e...content-available-to-author-only...e.com/file?name=hello\\1"}';
  3.  
  4. $v = json_decode($json, true);
  5.  
  6. $url = $v['episode_url'];
  7.  
  8. echo $url . PHP_EOL; // prints: ...hello\1
  9. echo substr_count($url, "\\") . PHP_EOL; // prints: 1
Success #stdin #stdout 0.03s 25472KB
stdin
Standard input is empty
stdout
0