From 140786fca98c381cac63beb84c4c2e233ff1090b Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 1 Apr 2008 16:06:08 +0000 Subject: guide example fixes --- user_guide/helpers/string_helper.html | 6 +++--- 1 file changed, 3 insertions(+), 3 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 c8e80bb7a..489c6b3fb 100644 --- a/user_guide/helpers/string_helper.html +++ b/user_guide/helpers/string_helper.html @@ -136,12 +136,12 @@ $string=reduce_multiples($string,","); //results in "Fred, Bill, Joe, Jimmy"

The function accepts the following parameters: reduce_multiples(string: text to search in, string: character to reduce, boolean: whether to remove the character from the front and end of the string) -The first parameter contrains the string in which you want to reduce the multiplies. The second parameter contains the character you want to have reduced. -The third parameter is False by default. If it it's to true it will remove occurences of the character at the beginning and the end of the string. Example: +The first parameter contains the string in which you want to reduce the multiplies. The second parameter contains the character you want to have reduced. +The third parameter is FALSE by default; if set to TRUE it will remove occurences of the character at the beginning and the end of the string. Example: $string=",Fred, Bill,, Joe, Jimmy,";
-$string=reduce_multiples($string,",",true); //results in "Fred, Bill, Joe, Jimmy" +$string=reduce_multiples($string, ", ", TRUE); //results in "Fred, Bill, Joe, Jimmy"

-- cgit v1.2.3-24-g4f1b