getFileSize.php
Table of Contents
Functions
- getFileSize() : int
- Returns the size of a file, in bytes.
Functions
getFileSize()
Returns the size of a file, in bytes.
getFileSize(string $file) : int
A thin, exception-throwing wrapper around filesize(): the file is first
validated with assertFile() (must exist and be readable), so a missing
file raises a typed FileException rather than a warning + false.
Parameters
- $file : string
-
Path to the file to measure.
Tags
Return values
int —The file size in bytes.