0) $url .= '/'; return $url; } function startswith($needle, $haystack) { return substr($haystack, 0, strlen($needle)) == $needle; }