Add note on avoiding substr() with $offset

-- 
Provided by anonymous 61891 (rasmus@mindplay.dk)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342563 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2017-06-08 09:30:36 +00:00
parent 57b593d529
commit 952a9acd72

View file

@ -183,6 +183,12 @@ Array
)
]]>
</screen>
<para>
Alternatively, to avoid using <literal>substr()</literal>, use the
<literal>\G</literal> rather than <literal>^</literal> anchor, or
the <literal>A</literal> modifier instead, both of which work with
the <parameter>offset</parameter> parameter.
</para>
</informalexample>
</para>
</note>