<?php
$json = '[
{
"id": "474",
"room_id": "14",
"user_id": "20",
"name": "121001.webm",
"fname": "",
"status": "0",
"date_recorded": "October 17 2018 07:18:51",
"size": "396135",
"is_public": "0",
"allow_download": "0",
"privatekey": "",
"duration": "0",
"record_path": "https:example/url/test.mp4",
"record_url": "https:example/url/test.mp4"
}
]';
//this will return array with stdClass object
$data = json_decode($json);
echo $data[0]->record_url . PHP_EOL;
//this will return array with associative array
$data = json_decode($json, true);
echo $data[0]['record_url'] . PHP_EOL;
preferences:
22.62 ms | 404 KiB | 5 Q