Curl Get-request return numeric vales with e-, but I need json string with normal numeric format or convert numeric e- to string full numeric value
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_ENCODING ,"");
curl_setopt($ch, CURLOPT_URL, "https://api.huobi.pro/market/tickers");
$json = curl_exec($ch);
curl_close($ch);
$obj = json_decode($json, true);
$curr_pairs = array("iotabtc","manabtc");
foreach ($obj['data'] as $tick_s){
$huobi_curr_pair = $tick_s['symbol'];
if (in_array($huobi_curr_pair, $curr_pairs,true)){
$tick_string = json_encode($tick_s);
echo $tick_string;
}
}
?>