[["pdf-sample.pdf",["uploads\/28\/pdf-sample.pdf"],{"en":"PDF Sample"},"","28"],["pdf-sample2.pdf",["uploads\/29\/pdf-sample2.pdf"],{"en":"Second PDF sample"},"","29"]]
Now I know how to access uploads\28\pdf-sample.pdf part - just type $value[1][0], but I need to get the description of that file, which is PDF Sample - and how can I access that?
My code thus far:
$files = json_decode($p['file']);
foreach ($files as $value) {
echo $value[1][0].'<br />';
}
your_array[0][2].enwill give you "PDF Sample". "uploads\28\pdf-sample.pdf" is atyour_array[0][1]not[1][0]as said in your question..notation you used is forJSnotPHP