$data = file_get_contents($url); $data1 = str_replace(array('(', ')'),'',$data); $array = json_decode($data1, true);