Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions reference/strings/functions/substr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ echo substr("abcdef", -3, 1), PHP_EOL; // returns "d"
</para>
<para>
If <parameter>length</parameter> is given and is negative, then that many
characters will be omitted from the end of <parameter>string</parameter>
(after the start position has been calculated when a
<parameter>offset</parameter> is negative). If
<parameter>offset</parameter> denotes the position of this truncation or
characters will be omitted from the end of <parameter>string</parameter>.
If <parameter>offset</parameter> denotes the position of this truncation or
beyond, an empty string will be returned.
</para>
<para>
Expand Down