如何从数组读取以存储在数据库中

来过一次

我有一个像这样的数组:

Array ( 
 [upload_data] => 
         Array ( 
          [file_name] => 67429_133961013479569_306349156_n3.jpg 
          [file_type] => image/jpeg
          [file_path] => D:/AppServ/www/d5n/rashaqa2/uploads/ 
          [full_path] => D:/AppServ/www/d5n/rashaqa2/uploads/67429_133961013479569_306349156_n3.jpg 
          [raw_name] => 67429_133961013479569_306349156_n3 
          [orig_name] => 67429_133961013479569_306349156_n.jpg 
          [client_name] => 67429_133961013479569_306349156_n.jpg 
          [file_ext] => .jpg 
          [file_size] => 34.05 
          [is_image] => 1 
          [image_width] => 720 
          [image_height] => 540 
          [image_type] => jpeg 
          [image_size_str] => width="720" height="540" 
               ) 
       ) 

我需要从这个数组[file_name]中保存到数据库中,我该如何读取。

安多拉

如果数组名称是arr您会写

arr[upload_data][filename]

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章