如何打印出 $_FILE

WBOY
Release: 2016-06-23 13:44:49
Original
1987 people have browsed it

即然它是超全局数组,按说应该随便在一个php页中就能打印出来啊,但是我打印出来的确是Array();不知为啥,
那么问题来了,$_FILE还必须要有什么条件才能打印出来吗
比如我在下图里的环境打印的


回复讨论(解决方案)

把表单贴出来

我用print_r和var_dump都打印不出数组结构来

print_r($_FILES);不能用echo输出

你提交到哪个页面了发你的和form表单

你提交到哪个页面了发你的和form表单


其实我的目的就是想打印出$_FILE这个数组的结构来,

没有数据提交过去是打印不出来的就是空数组array

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!