Posted By

sveggiani on 03/03/10


strings not-mine

Versions (?)

get the file extension of a filename in a string

 / Published in: PHP


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

Report this snippet  


RSS Icon Subscribe to comments
Posted By: MartinLeo on February 24, 2019

Thanks for sharing this code. Gpa Calculator

You need to login to post a comment.