Posted By

r4b87 on 08/02/10


file extension

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Get file extension from string

 / Published in: PHP

Given a string of a file name, return the extension

  1. $extension=substr(strrchr($file,'.'),1);

Report this snippet  

You need to login to post a comment.