mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
57b593d529
commit
952a9acd72
1 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue