Posted By

onefastsnail on 05/24/12


Tagged


Versions (?)

get file extensio


 / Published in: Other
 

  1. function get_file_extension($file_name){
  2. return substr(strrchr($file_name,'.'),1);
  3. }
  4.  
  5. //without extension
  6. $info = pathinfo($file); $file_name = basename($file,'.'.$info['extension']);

Report this snippet  

You need to login to post a comment.