dannybrazil Posted September 15, 2009 Share Posted September 15, 2009 Hello I have a file name abcde.jpg how can i get JUST the file name with out the extention ".jpg" ? thanks Quote Link to comment https://forums.phpfreaks.com/topic/174331-solved-quick-question/ Share on other sites More sharing options...
MadTechie Posted September 15, 2009 Share Posted September 15, 2009 theirs a few ways, here's a simple one $x = pathinfo('abcde.jpg'); echo $x['filename']; //echo $x['extension']; //if you wanted the jpg abcde Quote Link to comment https://forums.phpfreaks.com/topic/174331-solved-quick-question/#findComment-918960 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.