11智能在线
新记
如何用PHP判断一个文件夹是否为空
如题所述
举报该文章
相关建议 2017-02-13
$a=array_diff(scandir($dir),array('..','.'));
//数组为空代表文件夹为空
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/pq24qpf82444qvsf2s4.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
用php如何判断一个是文件还是文件夹
php怎么判断是否有某个文件夹
Java如何判断文件夹是否存在?
php如何判断一个是文件还是文件夹
php中如何判断一个目录有没有文件
php 怎么判断文件夹 upload 是否为空
PHP怎么用if语句写一个判断文本框中内容是否为空的语句?
php 判断是否有文件夹 创建文件夹