note 78421 added to language.references
| From: | yarco dot w at gmail dot com | Date: | Thu, 11 Oct 2007 08:53:13 +0000 |
| Subject: | note 78421 added to language.references | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131299@lists.php.net to get a copy of this message | ||
Well, I'm very pleased to share my knowledge on reference and array.
What do you think the following code?
<?php
$array1 = array(1 => 'One', 2 => 'Two_Will_Be_Changed', 3 =>
'Three');
// $p = & $array1[2]; line 1
$array2 = $array1;
// $p = & $array1[2]; line 2
$array2[2] = 'Changed';
print_r($array1);
print_r($array2);
?>
The result of the code?
If uncomment line 1, the result of the code?
And if line2?
So, now you know what i'm saying, are you?
----
Server IP: 69.147.83.197
Probable Submitter: 58.33.91.116
----
Manual Page -- http://www.php.net/manual/en/language.references.php
Edit -- https://master.php.net/note/edit/78421
Del: integrated -- https://master.php.net/note/delete/78421/integrated
Del: useless -- https://master.php.net/note/delete/78421/useless
Del: bad code -- https://master.php.net/note/delete/78421/bad+code
Del: spam -- https://master.php.net/note/delete/78421/spam
Del: non-english -- https://master.php.net/note/delete/78421/non-english
Del: in docs -- https://master.php.net/note/delete/78421/in+docs
Del: other reasons-- https://master.php.net/note/delete/78421
Reject -- https://master.php.net/note/reject/78421
Search -- https://master.php.net/manage/user-notes.php