The filesize() function returns the size of the specified file.
This function returns the file size in bytes on success or FALSE on failure.
Parameter | Description |
---|---|
filename | Required. Specifies the file to check |
Note: The result of this function are cached. Use clearstatcache() to clear the cache.
The output of the code above will be: