note 113258 deleted from language.types.array by cmb
| From: | cmb@php.net | Date: | Fri, 15 May 2015 18:29:26 +0000 |
| Subject: | note 113258 deleted from language.types.array by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202529@lists.php.net to get a copy of this message | ||
Note Submitter: azuleta at eycambiental dot com
----
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.