I am wondering how I would list the json values for each part of the list
my php code
$uri = "https://yt-dl-server.herokuapp.com/api/info?url=https://www.youtube.com/watch?v=$id";
$ci = curl_init();
curl_setopt( $ci, CURLOPT_URL, $uri );
curl_setopt( $ci, CURLOPT_RETURNTRANSFER, 1 );
$channelOBJE = json_decode( curl_exec( $ci ) );
$format_note = $channelOBJE->info->formats[20]->format_note;
$videourl = $channelOBJE->info->formats[20]->url;
$audiourl = $channelOBJE->info->formats[1]->url;
echo $format_note;
echo "<br>";
Following that code I want to get the $format_note for every formats[] but I don't want to have to list the number value of it. Thanks!
$channelOBJE->info?