I have this data sheet from angular that I want to convert to sting to put in a table sql database...
Normaly with that code I'm able to parse everything but it returns zero for that URL...
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL, $URL);
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36');
$querymain = curl_exec($curl_handle);
curl_close($curl_handle);
$arr = json_decode((string)$querymain, true);
(json_last_error()); // call after json_decode
$numarr = count($arr['data']);
thanks for the tips.