summaryrefslogtreecommitdiffstats
path: root/user_guide/helpers/string_helper.html
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-04-01 18:06:08 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-04-01 18:06:08 +0200
commit140786fca98c381cac63beb84c4c2e233ff1090b (patch)
treeab9937581fc2bfafc101df492ce871cd95f0c881 /user_guide/helpers/string_helper.html
parentac7c81e3cd8891d7a8103c121911f7192b5027af (diff)
guide example fixes
Diffstat (limited to 'user_guide/helpers/string_helper.html')
-rw-r--r--user_guide/helpers/string_helper.html6
1 files changed, 3 insertions, 3 deletions
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"
<p>The function accepts the following parameters:
<code>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)</code>
-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:
<code>
$string=",Fred, Bill,, Joe, Jimmy,";<br />
-$string=reduce_multiples($string,",",true); //results in "Fred, Bill, Joe, Jimmy"
+$string=reduce_multiples($string, ", ", TRUE); //results in "Fred, Bill, Joe, Jimmy"
</code>
</p>