<?php $json = '{"1 filename.doc":{"name":"filename.doc","url":"https://example.com/filename.doc","file":"/var/www/example.com/filename.doc","type":"application/msword","size":50688}}'; $jsonArray = json_decode($json, true); foreach($jsonArray as $file=>$fileAttributes) { echo '<a href="'.$fileAttributes['url'].'">'.$fileAttributes['name'].'</a>'; }
You have javascript disabled. You will not be able to edit any code.