You are here

21 March 2013

Get extension from file name.

Source code viewer
  1. $extension = pathinfo($file_name, PATHINFO_EXTENSION);
Programming Language: PHP