From ff845f94cc8876bc6c23c2f55b695bc569038512 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 26 Jun 2008 17:05:55 +0000 Subject: changed your-site.com to example.com doc-wide --- user_guide/helpers/string_helper.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user_guide/helpers/string_helper.html') diff --git a/user_guide/helpers/string_helper.html b/user_guide/helpers/string_helper.html index daa573564..3ede00931 100644 --- a/user_guide/helpers/string_helper.html +++ b/user_guide/helpers/string_helper.html @@ -118,8 +118,8 @@ echo repeater($string, 30);

The above would generate 30 newlines.

reduce_double_slashes()

Converts double slashes in a string to a single slash, except those found in http://. Example:

-$string = "http://www.example.com//index.php";
-echo reduce_double_slashes($string); // results in "http://www.example.com/index.php"
+$string = "http://example.com//index.php";
+echo reduce_double_slashes($string); // results in "http://example.com/index.php"

trim_slashes()

Removes any leading/trailing slashes from a string. Example:

-- cgit v1.2.3-24-g4f1b