From 325197e700564f8e4e0ba7c9fc82abfd85f451b0 Mon Sep 17 00:00:00 2001
From: Rick Ellis Truncates a string to the number of words specified. Example:
-$str = "Here is a nice text string consisting of eleven words.";
+$string = "Here is a nice text string consisting of eleven words.";
$string = word_limiter($string, 4);
@@ -95,9 +95,9 @@ $string = word_limiter($string, 4);
of words so the character count may be slightly more or less then what you specify. Example:
-$str = "Here is a nice text string consisting of eleven words.";
+$string = "Here is a nice text string consisting of eleven words.";
-$string = char_limiter($string, 20);
+$string = character_limiter($string, 20);
// Returns: Here is a nice text string…
@@ -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:
-$str = "Here is a nice text string about nothing in particular.";
+$string = "Here is a nice text string about nothing in particular.";
$string = highlight_phrase($string, "nice text", '<span style="color:#990000">', '</span>');
--
cgit v1.2.3-24-g4f1b