The filesize() function returns the file size. It returns the file size in bytes, on success, whereas on failure, it returns FALSE.
Syntax
filesize(file_path)
Parameters
file_path − The path of the file for which the size is to be determined.
Return
The filesize() function returns the file size in bytes, on success, whereas on failure, it returns FALSE.
Example
<?php echo filesize("one.txt"); ?>
Output
40