document grapheme_substr() fix

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@316123 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Stanislav Malyshev 2011-09-04 23:44:00 +00:00
parent ed0e773fcc
commit 2deb200678

View file

@ -50,11 +50,10 @@
Length in grapheme units.
If $length is given and is positive, the string returned will contain
at most $length grapheme units beginning from $start (depending on the
length of string). If $string is less than or equal to $start grapheme
units long, FALSE will be returned. If $length is given and is negative, then
length of string). If $length is given and is negative, then
that many grapheme units will be omitted from the end of string (after the
start position has been calculated when a start is negative). If $start
denotes a position beyond this truncation, an empty string will be returned.
denotes a position beyond this truncation, &false; will be returned.
</para>
</listitem>
</varlistentry>
@ -70,6 +69,34 @@
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>5.4</entry>
<entry>
If <parameter>length</parameter> is given and positive and the
argument string is shorter than the specified length, all the rest of
the string according to <parameter>start</parameter> parameter is
returned. Previously, &false; was returned.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>