Home › Forums › Back End › PHP – Remove anything after the last / › Re: PHP – Remove anything after the last /
September 14, 2011 at 5:59 am
#87149
KarimCossutti
Member
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…