mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Copying an array may not lead to pointer reset (bug #45369)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268347 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
dd28d33349
commit
3ef6a74874
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<sect1 xml:id="language.types.array">
|
||||
<title>Arrays</title>
|
||||
|
||||
|
@ -840,9 +840,7 @@ $juices["apple"]["green"] = "good";
|
|||
</example>
|
||||
|
||||
<para>
|
||||
<type>Array</type> assignment always involves value copying. It also means
|
||||
that the internal <type>array</type> pointer used by
|
||||
<function>current</function> and similar functions is reset. Use the
|
||||
<type>Array</type> assignment always involves value copying. Use the
|
||||
<link linkend="language.operators">reference operator</link> to copy an
|
||||
<type>array</type> by reference.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue