Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP – Remove anything after the last / Re: PHP – Remove anything after the last /

#87149

Hi and thanks chris i tried to use the rtrim function but this is the result

$url = 'http://www.domain.ext/subf/page.html';

$result = rtrim($url, "/"); // Gives me the entire url

I want to point out that PHP is total voodoo to me i try to understand the best i can…