Posted By

sveggiani on 03/03/10


Tagged

strings not-mine


Versions (?)

get the file extension of a filename in a string


 / Published in: PHP
 

URL: http://davidwalsh.name/php-function-get-file-extension-string

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

Report this snippet  

You need to login to post a comment.