jronyagz Posted December 1, 2006 Share Posted December 1, 2006 hi!i just wanna ask if there is any function that will only get the filename of an image w/o the extension? Link to comment https://forums.phpfreaks.com/topic/29089-need-help-on-image/ Share on other sites More sharing options...
JasonLewis Posted December 1, 2006 Share Posted December 1, 2006 not sure if there is a function, i've never known of one. you can just explode() the image name at a full stop (.). but that is assuming that your image names dont have any other dots in them.example:[code=php:0]$imagename = "./images/acoolpic.gif";$explode = explode(".", $imagename);$imagename = $explode[0];echo $imagename;[/code] Link to comment https://forums.phpfreaks.com/topic/29089-need-help-on-image/#findComment-133314 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.