SplFileInfo::getSize
(PHP 5 >= 5.1.2, PHP 7, PHP 8)
SplFileInfo::getSize — Gets file size
Beschreibung
Returns the filesize in bytes for the file referenced.
Parameter-Liste
Diese Funktion besitzt keine Parameter.
Rückgabewerte
The filesize in bytes on success, or false
on failure.
Fehler/Exceptions
A RuntimeException will be thrown if the file does not exist or an error occurs.