Posted By

soup on 05/19/11


Tagged

files extension


Versions (?)

get file extension


 / Published in: PHP
 

URL: http://cowburn.info/2008/01/13/get-file-extension-comparison/

  1. $filename = 'mypic.gif';
  2. $ext = pathinfo($filename, PATHINFO_EXTENSION);

Report this snippet  

You need to login to post a comment.