Home >> PHP >> filesize() function in PHP

filesize() function in PHP

The filesize() function returns the file size.

This function returns the file size in bytes or false on error.

Syntax

filesize(filename)

Example

echo filesize("content.txt");

Output

10

Post Your Comment

Next Questions
filetype() function
flock() function
fputs() function
fscanf() function
fstat() function
ftell() function
ftruncate() function
is_executable() function
is_file() function
is_link() function
is_readable() function
is_writable() function
link() function
linkinfo() function
pathinfo() function
readfile() function
readlink() function
realpath() function
rename() function
tmpfile() function
umask() function
How to swap two numbers without using a temprory variable
How to swap two numbers
How can find factorial using for loop
How can find reverse number of a number

Copyright ©2022 coderraj.com. All Rights Reserved.