Return to Snippet

Revision: 3476
at August 9, 2007 18:21 by hyperwhat


Updated Code
preg_replace("/.*?\./", '', 'photo.jpg');

Revision: 3475
at July 30, 2007 06:04 by hyperwhat


Updated Code
preg_replace("/.*?\./", "", $filename);

Revision: 3474
at July 30, 2007 06:04 by hyperwhat


Initial Code
preg_replace(”/.*?\./”, “”, $filename);

Initial URL


Initial Description


Initial Title
Get the extension of a filename

Initial Tags
regexp, files

Initial Language
PHP