violinrocker Posted April 5, 2010 Share Posted April 5, 2010 i want to remove the file extensions in my fetched rows for example i have http://blbla.com/file.exe i want it to look like http://blbla.com/file tnx Link to comment https://forums.phpfreaks.com/topic/197610-removing-characters-after-fetching/ Share on other sites More sharing options...
the182guy Posted April 5, 2010 Share Posted April 5, 2010 You can do that like this $url = 'http://blbla.com/file.exe'; $withoutExt = implode('.', explode('.', $url, -1)); echo $withoutExt; Link to comment https://forums.phpfreaks.com/topic/197610-removing-characters-after-fetching/#findComment-1037085 Share on other sites More sharing options...
violinrocker Posted April 5, 2010 Author Share Posted April 5, 2010 TNX!! really appreciate it... works well Link to comment https://forums.phpfreaks.com/topic/197610-removing-characters-after-fetching/#findComment-1037086 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.