diff --git a/reference/strings/functions/substr.xml b/reference/strings/functions/substr.xml index 65f5157c39..019a63aeff 100644 --- a/reference/strings/functions/substr.xml +++ b/reference/strings/functions/substr.xml @@ -1,5 +1,5 @@ - + @@ -68,8 +68,8 @@ $rest = substr("abcdef", -3, 1); // returns "d" returned will contain at most length characters beginning from start (depending on the length of string). If string is less - than start characters long, &false; will be - returned. + than or equal to start characters long, &false; + will be returned. If length is given and is negative, then that many @@ -94,8 +94,11 @@ $rest = substr("abcdef", -3, -1); // returns "de" See also strrchr, - substr_replace, ereg, - trim and mb_substr. + substr_replace, + ereg, + trim, + mb_substr and + wordwrap.