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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.