我有一个这样的数组: -
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]
保存在DB中,我该怎么读这个。
答案 0 :(得分:1)
如果数组名称为arr
,您可以编写
arr[upload_data][filename]