PHP filesize() 函数
PHP 教程
· 2019-01-25 05:57:58
定义和用法
filesize() 函数返回指定文件的大小。
如果成功,该函数返回文件大小的字节数。如果失败,则返回 FALSE。
语法
filesize(filename)
| 参数 | 描述 |
|---|---|
| filename | 必需。规定要检查的文件。 |
提示和注释
注释:该函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。
实例
<?php
echo filesize("test.txt");
?>
上面的代码将输出:
20
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
The Little Schemer - 4th Edition
Daniel P. Friedman、Matthias Felleisen / The MIT Press / 1995-12-21 / USD 40.00
This delightful book leads you through the basic elements of programming in Scheme (a Lisp dialect) via a series of dialogues with well-chosen questions and exercises. Besides teaching Scheme, The Lit......一起来看看 《The Little Schemer - 4th Edition》 这本书的介绍吧!