CodeIgniter 字符串辅助函数 - reduce_double_slashes()

将字符串中的双斜线(//)转换为单斜线(/),但不转换形如(http://)的双斜线。范例:$string = "http://example.com//index.php"; echo reduce_double_slashes($string); // results in "http://example.com/index.php"文章来源:http://cwiki.ossez.com/pages/viewpage.action?pageId=2392225