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 Quote 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; Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/197610-removing-characters-after-fetching/#findComment-1037086 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.