I am trying to get to the [name] (either once at a time or to all of them) in the json but I don't know how to do that, I've tried fiddling a bit with the code e.g. $json->Array[0]->name
, but that doesn't work. Pls help. Thank you in advance for your answers.
-HeavyMalding
The code:
//the json output after decoding:
Array ( [0] => stdClass Object ( [name] => IMG_7013.JPG [full_path] => IMG_7013.JPG [type] => image/jpeg [tmp_name] => F:\XAMPP\tmp\php7772.tmp [error] => 0 [size] => 16303899 ) [1] => stdClass Object ( [name] => IMG_7738.JPG [full_path] => IMG_7738.JPG [type] => image/jpeg [tmp_name] => F:\XAMPP\tmp\php781F.tmp [error] => 0 [size] => 9498238 ) [2] => stdClass Object ( [name] => IMG_7792.JPG [full_path] => IMG_7792.JPG [type] => image/jpeg [tmp_name] => F:\XAMPP\tmp\php786E.tmp [error] => 0 [size] => 10818478 ) )