jronyagz Posted December 4, 2006 Share Posted December 4, 2006 hello guys..i just wanna ask what function that will get the filename of an image w/o the extension name.example:eg. ( ‘mypic1.gif’ should be ‘mypic1’)thnx in advance... Quote Link to comment https://forums.phpfreaks.com/topic/29393-help-in-getting-image-file-name/ Share on other sites More sharing options...
redbullmarky Posted December 4, 2006 Share Posted December 4, 2006 [code]<?php$filename = 'mypic.gif';list($filename, $extension) = explode('.', $filename);echo $filename; // mypicecho $extension; // gif?>[/code]should do the trick Quote Link to comment https://forums.phpfreaks.com/topic/29393-help-in-getting-image-file-name/#findComment-134824 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.