note 126228 added to language.references
| From: | info at fedushin dot ru | Date: | Wed, 07 Jul 2021 20:38:07 +0000 |
| Subject: | note 126228 added to language.references | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216589@lists.php.net to get a copy of this message | ||
Arrays of references are supported:
<?php
$x = 1;
$y = 2;
$z = 3;
$arr = [&$x, &$y, &$z];
foreach($arr as &$item)
$item = 10;
var_dump($x, $y, $z);
?>
Output:
int(10) int(10) int(10)
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 37.144.247.103)
----
Manual Page -- https://php.net/manual/en/language.references.php
Edit -- https://main.php.net/note/edit/126228
Del: integrated -- https://main.php.net/note/delete/126228/integrated
Del: useless -- https://main.php.net/note/delete/126228/useless
Del: bad code -- https://main.php.net/note/delete/126228/bad+code
Del: spam -- https://main.php.net/note/delete/126228/spam
Del: non-english -- https://main.php.net/note/delete/126228/non-english
Del: in docs -- https://main.php.net/note/delete/126228/in+docs
Del: other reasons-- https://main.php.net/note/delete/126228
Reject -- https://main.php.net/note/reject/126228
Search -- https://main.php.net/manage/user-notes.php