多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# PHP diskfreespace() 函数 ## 定义和用法 diskfreespace() 函数返回目录中的可用空间。该函数是 [disk_free_space()](/php/func_filesystem_disk_free_space.asp "PHP disk_free_space() 函数") 函数的别名。 ### 语法 ``` diskfreespace(directory) ``` | 参数 | 描述 | | --- | --- | | directory | 必需。规定要检查的目录。 | ### 说明 _directory_ 参数是一个目录的字符串。该函数将根据相应的文件系统或磁盘分区返回可用的字节数。 ## 例子 ``` <?php echo diskfreespace("C:"); ?> ``` 输出: ``` 209693288558 ```