php - want to get values from array -
After
I want to get the value of the file name
in the meta_data array
. I want to get this value down: thumbs_M_73c0e89c3b5b44c030f727649980f5e0.jpg
. I tried the following code, but the value was not found
did not work:.
foreach (AS $ $ Image Gallery) {foreach ($ image & gt; Meta_deta [ 'thumbnail'] as $ image) {print_r ($ image); }
Here are my array
Array ([43] = & gt; nggImage Object ([_ngiw] = & gt; C_Image_Wrapper Object ([_cache ] = & gt; array ([alttext] = & gt; M_73c0e89c3b5b44c030f727649980f5e0 [author] = & gt; 1 [description] = & gt; [Errmsg] = & gt; [error] = & gt; [exclude] = & gt ; 0 [extras_post_id] = & gt; 20589 [filename] = & gt; M_73c0e89c3b5b44c030f727649980f5e0.jpg [galdesc] = & gt; [galleryid] = & gt; 1 [gid] = & gt; 1 [hidden] = & gt; [href] = & gt; [Imagepth] = & gt; [Imjurl] = & gt; [Imej_slg] = & gt; M_73c0e89c3b5b44c030f727649980f5e0 [Imgdate] = & gt; 2014-03-21 10:58:00 [Meta_deta] = > Array ([width] => 800 [height] => 1200] [Thumbnail ] = & Gt; array ([width] => 240 [high E] = & gt; 340 [filename] = & gt; thumbs_M_73c0e89c3b5b44c030f727649980f5e0.jpg [generate] = & gt; .1 9 071200 +141355078 9) [Aperture] = & gt; F 4.5 [credit] = & gt; [camera] = Gt; Canon EOS 5D Mark III [Caption] = & gt; [Built_temestamp] = & gt; 21st March 2014 at 10:58 pm [Copyright] = & gt; [Focal_long] = & gt; 85 mm [ISO] => 100 [shutter-speed] = & gt; 1/200 seconds [Flash] = & gt; Removed [title] = & gt; [Keyword] = & gt; [Saved] = & gt; 1 [ngg0dyn-200x200x90-00f0w010c010r110f110r010t03jpg] = & gt; Array ([width] => 133 [height] => 200 [filename] => M_73c0e89c3b5b44c030f727649980f5e0-nggid0243-ngg0dyn-200x200x90-00f0w010c010r110f110r010t03jpg.jpg [generated] => 0.32975900 1413551556))
Comments
Post a Comment