note 113258 added to language.types.array
| From: | azuleta at eycambiental dot com | Date: | Wed, 18 Sep 2013 17:42:29 +0000 |
| Subject: | note 113258 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196300@lists.php.net to get a copy of this message | ||
I think there's a mistake in the las example:
...'<?php
$arr1 = array(2, 3);
$arr2 = $arr1;
$arr2[] = 4; // $arr2 ha cambiado,
// $arr1 sigue siendo array(2, 3)
$arr3 = &$arr1;
$arr3[] = 4; // ahora $arr1 y $arr3 son iguales
?>'
I think it should be: ...'ahora $arr2 y $arr3 son iguales'...
Thanks.
----
Server IP: 69.147.83.199
Probable Submitter: 190.0.43.90
----
Manual Page -- http://php.net/manual/en/language.types.array.php
Edit -- https://master.php.net/note/edit/113258
Del: integrated -- https://master.php.net/note/delete/113258/integrated
Del: useless -- https://master.php.net/note/delete/113258/useless
Del: bad code -- https://master.php.net/note/delete/113258/bad+code
Del: spam -- https://master.php.net/note/delete/113258/spam
Del: non-english -- https://master.php.net/note/delete/113258/non-english
Del: in docs -- https://master.php.net/note/delete/113258/in+docs
Del: other reasons-- https://master.php.net/note/delete/113258
Reject -- https://master.php.net/note/reject/113258
Search -- https://master.php.net/manage/user-notes.php