diff --git a/reference/strings/functions/substr.xml b/reference/strings/functions/substr.xml
index 4202a65421..2153f5d556 100644
--- a/reference/strings/functions/substr.xml
+++ b/reference/strings/functions/substr.xml
@@ -83,8 +83,8 @@ $rest = substr("abcdef", -3, 1); // returns "d"
characters will be omitted from the end of string
(after the start position has been calculated when a
start is negative). If
- start denotes a position beyond this truncation,
- an empty string will be returned.
+ start denotes the position of this truncation or
+ beyond, false will be returned.
If length is given and is 0,
@@ -102,7 +102,7 @@ $rest = substr("abcdef", -3, 1); // returns "d"
]]>
@@ -120,6 +120,32 @@ $rest = substr("abcdef", -3, -1); // returns "de"
Returns the extracted part of string, &return.falseforfailure; or an empty string.
+
+
+ &reftitle.changelog;
+
+
+
+
+
+ &Version;
+ &Description;
+
+
+
+
+ 5.2.2
+
+ If the start parameter indicates the position of
+ a negative truncation or beyond, false is returned. Prior to this
+ version, an empty string was returned.
+
+
+
+
+
+
+
&reftitle.examples;