Я расшифровал этот массив json с помощью функции json_decode;
{"success":true,"message":"","result":{"Bid":0.00000097,"Ask":0.00000100,"Last":0.00000100}}
Затем я попытался отобразить значение «Bid», php печатает это так;
'9.7E-7'
Мой код PHP;
$orders = file_get_contents("php://input");
$orders = json_decode($orders, true);
$market = str_replace(" ","",$orders["orders"]["sell"]["market"]);
$price = file_get_contents("https://bittrex.com/api/v1.1/public/getticker?market=".$market);
$price = json_decode($price, true);
$finalprice = (double)$price["result"]["Bid"];
echo $finalprice;
Выход;
'9.7E-7'
Я хочу напечатать;
0.00000097
echo number_format($finalPrice, 8);
Других решений пока нет …