(PHP 5 >= 5.1.2, PHP 7)
SplFileInfo::getSize — Gets file size
public SplFileInfo::getSize ( ) : int
Returns the filesize in bytes for the file referenced.
This function has no parameters.
The filesize in bytes.
A RuntimeException will be thrown if the file does not exist or an error occurs.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/splfileinfo.getsize.php