Skip to content

substr.xml Remove the redundant mention of the offset #4759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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