(PHP 5 >= 5.1.2, PHP 7, PHP 8)
SplFileInfo::getSize — Gets file size
Returns the filesize in bytes for the file referenced.
此函数没有参数。
The filesize in bytes.
A RuntimeException will be thrown if the file does not exist or an error occurs.