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... 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 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
Archived
This topic is now archived and is closed to further replies.