如何获取web_hi_res_512.png
值。
Array (
[upload_data] =>
Array ( [file_name] => web_hi_res_51216.png
[file_type] => image/png
[file_path] => C:/xampp/htdocs/elearning/uploads/
[full_path] => C:/xampp/htdocs/elearning/uploads/web_hi_res_51216.png
[raw_name] => web_hi_res_51216 [orig_name] => web_hi_res_512.png
[client_name] => web_hi_res_512.png [file_ext] => .png [file_size] => 84.94
[is_image] => 1
[image_width] => 512
[image_height] => 512
[image_type] => png
[image_size_str] => width="512" height="512"
)
)
答案 0 :(得分:2)
<?=$array['upload_data']['file_name'];?>
你可以得到这样的
答案 1 :(得分:2)
如果将此数组分配给变量$ array:
echo $array['upload_data']['file_name'];
答案 2 :(得分:0)
POSIXct
您可以按以下方式访问它
echo $array['1st_array_key']['2nd_array_key'];