diff --git a/reference/strings/functions/substr.xml b/reference/strings/functions/substr.xml index f4e396a76e..8ae115ea4c 100644 --- a/reference/strings/functions/substr.xml +++ b/reference/strings/functions/substr.xml @@ -1,5 +1,5 @@ - + @@ -49,7 +49,8 @@ echo $string{3}; // returns d If start is negative, the returned string will start at the start'th character - from the end of string. + from the end of string. + Using a negative <parameter>start</parameter> @@ -66,7 +67,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 + string). If string is less than start characters long, &false; will be returned.