Someone, please help me to get only the order id from this array:
array(2) {
["success"] => int(1)
["return"] => array(1) {
[100010973975966] => array(7) {
["pair"] => string(8) "doge_btc"
["type"]=> string(3) "buy"
["start_amount"]=> int(300)
["amount"]=> int(300)
["rate"]=> float(3.9E-7)
["timestamp_created"]=> string(10) "1530443432"
["status"]=> int(0)
}
}
}
I need to extract only 100010973975966 as a variable. I am using this code to get this data from yobit:
$order_info = $yobit->privatePostOrderInfo(
array(
"nonce" => time(),
"order_id" => $result["return"]["order_id"]
)
);
Thanks a lot!