From 8788d4b5f597465daaabf46455cd086b6b7deb58 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 8 Aug 2007 17:04:40 +0000 Subject: changed some-site.com to example.com in example code per http://www.rfc-editor.org/rfc/rfc2606.txt --- 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 cf6871709..c20c7b840 100644 --- a/user_guide/helpers/string_helper.html +++ b/user_guide/helpers/string_helper.html @@ -123,8 +123,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.some-site.com//index.php";
-echo reduce_double_slashes($string); // results in "http://www.some-site.com/index.php"
+$string = "http://www.example.com//index.php";
+echo reduce_double_slashes($string); // results in "http://www.example.com/index.php"

trim_slashes()

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

-- cgit v1.2.3-24-g4f1b