Posted By

gbot on 03/09/08


Tagged

file extension


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

gbot
fackz


Get file extension


 / Published in: PHP
 

  1. function get_file_ext($file_name)
  2. {
  3. return substr(strrchr($file_name,'.'),1);
  4. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: luman on March 9, 2008

http://snipplr.com/view/5339/get-file-extension/

I think that it's better

You need to login to post a comment.