Share on Google+Share on Google+

PHP filetype() function and example

This section of PHP tutorial, we illustrates you the how to use of filetype functions and its examples.

string filetype(file_name)

  • It gives the file type of the give file name in string form
  • File types are dir, block, link, file, fifo, char, socket and unknown.

Example of PHP filetype() Function

"file type is ".$name;

file type is file


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.