diff --git a/reference/strings/functions/substr.xml b/reference/strings/functions/substr.xml index 2f72222d9a1a..321b546b133a 100644 --- a/reference/strings/functions/substr.xml +++ b/reference/strings/functions/substr.xml @@ -80,10 +80,8 @@ echo substr("abcdef", -3, 1), PHP_EOL; // returns "d" If length is given and is negative, then that many - characters will be omitted from the end of string - (after the start position has been calculated when a - offset is negative). If - offset denotes the position of this truncation or + characters will be omitted from the end of string. + If offset denotes the position of this truncation or beyond, an empty string will be returned.