komquat Posted March 4, 2006 Share Posted March 4, 2006 I am looking for advice on how to strip an extension of a file name. exampleFile name: lighthouse.jpgI want to get: lighthouseThanks again Link to comment https://forums.phpfreaks.com/topic/4086-how-to-strip-the-extension/ Share on other sites More sharing options...
kenrbnsn Posted March 4, 2006 Share Posted March 4, 2006 Look at the functions [a href=\"http://www.php.net/path_info\" target=\"_blank\"]path_info[/a]() and [a href=\"http://www.php.net/basename\" target=\"_blank\"]basename[/a]().Ken Link to comment https://forums.phpfreaks.com/topic/4086-how-to-strip-the-extension/#findComment-14173 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.