Share on Google+Share on Google+

PHP filesize() function and example

In this part of PHP tutorial we will learn about the filesize() function and its examples


  • int filesize(file_name)
  • It gives the size in bytes. 

Example of filesize() Function in PHP


"size is ".$size." bytes";


size is 20 bytes


Posted on: October 29, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.