diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2006-11-20 18:29:05 +0100 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2006-11-20 18:29:05 +0100 |
commit | 325197e700564f8e4e0ba7c9fc82abfd85f451b0 (patch) | |
tree | c109f0c96f187dc3b919aca591daf5767de4c982 /user_guide/helpers/text_helper.html | |
parent | ebfa686046bb98c757d1b41c81eb867478036e68 (diff) |
Diffstat (limited to 'user_guide/helpers/text_helper.html')
-rw-r--r-- | user_guide/helpers/text_helper.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/user_guide/helpers/text_helper.html b/user_guide/helpers/text_helper.html index f84acce95..9cdada2db 100644 --- a/user_guide/helpers/text_helper.html +++ b/user_guide/helpers/text_helper.html @@ -79,7 +79,7 @@ Text Helper <p>Truncates a string to the number of <strong>words</strong> specified. Example:</p>
<code>
-$str = "Here is a nice text string consisting of eleven words.";<br />
+$string = "Here is a nice text string consisting of eleven words.";<br />
<br />
$string = word_limiter($string, 4);<br /><br />
@@ -95,9 +95,9 @@ $string = word_limiter($string, 4);<br /><br /> of words so the character count may be slightly more or less then what you specify. Example:</p>
<code>
-$str = "Here is a nice text string consisting of eleven words.";<br />
+$string = "Here is a nice text string consisting of eleven words.";<br />
<br />
-$string = char_limiter($string, 20);<br /><br />
+$string = character_limiter($string, 20);<br /><br />
// Returns: Here is a nice text string…
</code>
@@ -149,7 +149,7 @@ contain the phrase you wish to highlight. The third and fourth parameters will you would like the phrase wrapped in. Example:</p>
<code>
-$str = "Here is a nice text string about nothing in particular.";<br />
+$string = "Here is a nice text string about nothing in particular.";<br />
<br />
$string = highlight_phrase($string, "nice text", '<span style="color:#990000">', '</span>');
</code>
|