diff --git a/reference/strings/functions/substr.xml b/reference/strings/functions/substr.xml index 5716559d79..f16f7938eb 100644 --- a/reference/strings/functions/substr.xml +++ b/reference/strings/functions/substr.xml @@ -1,5 +1,5 @@ - + substr @@ -49,6 +49,10 @@ will start at the start'th character from the end of string. + + If string is less than or equal to + start characters long, &false; will be returned. + Using a negative <parameter>start</parameter> @@ -72,9 +76,7 @@ $rest = substr("abcdef", -3, 1); // returns "d" If length is given and is positive, the string returned will contain at most length characters beginning from start (depending on the length of - string). If string is less - than or equal to start characters long, &false; - will be returned. + string). If length is given and is negative, then that many