Skip to content

Commit 5e62857

Browse files
committed
substr.xml Remove the redundant mention of the offset
php/doc-en@71166b7
1 parent 2e11267 commit 5e62857

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

reference/strings/functions/substr.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 45042fef652f1b4e904e809fcbfcf31f6c60670b Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 71166b721ba6bb7dd3110da86efa3b723e1f7651 Maintainer: hirokawa Status: ready -->
44
<!-- CREDITS: shimooka,mumumu -->
55
<refentry xml:id="function.substr" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -82,9 +82,7 @@ echo substr("abcdef", -3, 1), PHP_EOL; // "d" を返す
8282
</para>
8383
<para>
8484
<parameter>length</parameter> が指定され、かつ負である場合、
85-
<parameter>string</parameter> の終端からその文字数分の文字が省略されます
86-
(<parameter>offset</parameter> が負の場合は、
87-
開始位置を算出したあとで)。
85+
<parameter>string</parameter> の終端からその文字数分の文字が省略されます。
8886
もし <parameter>offset</parameter> が切り出し位置を超える場合、
8987
空の文字列が返されます。
9088
</para>

0 commit comments

Comments
 (0)