static function rmEndSlash($sString) { if (substr($sString, -1) === "/") { $sString = substr($sString, 0, -1); } return $sString; }