get file extension


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $filename = 'mypic.gif';
  2. $ext = pathinfo($filename, PATHINFO_EXTENSION);

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.