<?php $url = "http://derp.com/index.html/"; echo rtrim($url, '/') . "\n"; $url2 = "http://derp.com/index.html"; echo rtrim($url2, '/') . "\n";
You have javascript disabled. You will not be able to edit any code.