diff --git a/functions/strings.xml b/functions/strings.xml
index 6c2fdb3e91..97a6fd53c9 100644
--- a/functions/strings.xml
+++ b/functions/strings.xml
@@ -2567,6 +2567,37 @@ $rest = substr ("abcdef", 1, -1); // returns "bcde"
+
+
+ substr_count
+ Count the number of substring occurrences
+
+
+ Description
+
+
+ int substr_count
+ string haystrack
+ string needle
+
+
+
+ substr_count returns the number of times the
+ needle substring occurs in the
+ haystack string.
+
+
+
+
+ substr_count example
+
+print substr_count("This is a test", "is"); // prints out 2
+
+
+
+
+
+
substr_replace