diskfreespace() 函數返回目錄中的可用空間,是 disk_free_space() 的別名。
用法
diskfreespace(dir_name)
參數
dir_name −要指定的目錄。
返回
diskfreespace() 函數以字節為單位返回可用空間。
示例
<?php
echo diskfreespace("/home/");
?>
輸出
832931168256
讓我們再看一個例子。
示例
<?php
$free_space = diskfreespace("/home/");
echo "Free Space:$free_space";
?>
輸出
Free Space:832931168256
相關用法
- PHP disk_total_space()用法及代碼示例
- PHP disk_total_space( )用法及代碼示例
- PHP disk_free_space( )用法及代碼示例
- PHP dir()用法及代碼示例
- PHP dirname( )用法及代碼示例
- PHP debug_print_backtrace()用法及代碼示例
- PHP decbin()用法及代碼示例
- PHP date_default_timezone_set()用法及代碼示例
- PHP date_create_immutable()用法及代碼示例
- PHP date_get_last_errors()用法及代碼示例
- PHP decoct()用法及代碼示例
- PHP date_parse()用法及代碼示例
- PHP date_offset_get()用法及代碼示例
- PHP date_create()用法及代碼示例
- PHP date_diff()用法及代碼示例
- PHP date_create(), date_format(), date_add()用法及代碼示例
- PHP debug_backtrace()用法及代碼示例
注:本文由純淨天空篩選整理自Karthikeya Boyini大神的英文原創作品 diskfreespace() function in PHP。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。