summaryrefslogtreecommitdiffstats
path: root/user_guide/helpers/text_helper.html
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2006-11-20 18:29:05 +0100
committerRick Ellis <rick.ellis@ellislab.com>2006-11-20 18:29:05 +0100
commit325197e700564f8e4e0ba7c9fc82abfd85f451b0 (patch)
treec109f0c96f187dc3b919aca591daf5767de4c982 /user_guide/helpers/text_helper.html
parentebfa686046bb98c757d1b41c81eb867478036e68 (diff)
Diffstat (limited to 'user_guide/helpers/text_helper.html')
-rw-r--r--user_guide/helpers/text_helper.html8
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&#8230;
</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", '&lt;span style="color:#990000">', '&lt;/span>');
</code>