📜  php代码示例中的文件大小

📅  最后修改于: 2022-03-11 14:54:34.048000             🧑  作者: Mango

代码示例4
$file = '/path/to/your/file';
$filesize = filesize($file); // bytes
$filesize = round($filesize / 1024, 2); // kilobytes with two digits
 
echo "The size of your file is $filesize KB.";