I want to use json with php but I don't know how to access it
Here is my code
$ch7 = curl_init();
curl_setopt($ch7, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch7, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch7, CURLOPT_URL, 'https://api.coingecko.com/api/v3/global');
$result7 = curl_exec($ch7);
curl_close($ch7);
$obj7 = json_decode($result7);
Here is the json
    {
  "data": {
    "active_cryptocurrencies": 6338,
    "upcoming_icos": 0,
    "ongoing_icos": 50,
    "ended_icos": 3375,
    "markets": 575,
    "total_market_cap": {
      "btc": 31264669.404227894,
      "eth": 986229572.8311379,
      "ltc": 8326834496.047988,
      "bch": 2980419662.8658423,
      "bnb": 6485631120.709941
    },
    "total_volume": {
      "btc": 3784938.672480205,
      "eth": 119394144.29398768,
      "ltc": 1008056650.0144182
    },
    "market_cap_percentage": {
      "btc": 59.63238491010178,
      "eth": 11.663971433816743,
      "ada": 2.4794373376051837    },
    "market_cap_change_percentage_24h_usd": 7.202574893019179,
    "updated_at": 1614796183
  }
}
Can you help access for example data->ongoing_icos ?
 
     
    