Posted By

stancell on 04/21/08


Tagged

file extension


Versions (?)

File extension


 / Published in: PHP
 

  1. function file_extension($filename)
  2. {
  3. return pathinfo($filename, PATHINFO_EXTENSION);
  4. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: koncept on April 22, 2008

Posted By: koncept on April 22, 2008

function fileextension($filename) { return pathinfo($filename, PATHINFOEXTENSION); }

Posted By: stancell on May 30, 2008

Thanks koncept.

You need to login to post a comment.