Posted By

f6design on 02/25/11


Tagged

extension


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

mikael12
punishervr


Get file extension from a string


 / Published in: PHP
 

  1. $path_parts = pathinfo('/www/htdocs/index.html');
  2. $extension = $path_parts['extension'];

Report this snippet  

You need to login to post a comment.