note 124450 added to language.references.pass
| From: | medue8 at gmail dot com | Date: | Fri, 29 Nov 2019 07:32:26 +0000 |
| Subject: | note 124450 added to language.references.pass | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-213276@lists.php.net to get a copy of this message | ||
$user = [
['name' => 'tom', 'phone' => '123456'],
['name' => 'jack', 'phone' => '234567'],
];
foreach ($user??[] as &$info) {
$info['age'] = 22;
}
var_dump($user);exit;
result:
array (size=2)
0 =>
array (size=2)
'name' => string 'tom' (length=3)
'phone' => string '123456' (length=6)
1 =>
array (size=2)
'name' => string 'jack' (length=4)
'phone' => string '234567' (length=6)
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.168 (proxied: 146.196.91.154)
----
Manual Page -- http://php.net/manual/en/language.references.pass.php
Edit -- https://master.php.net/note/edit/124450
Del: integrated -- https://master.php.net/note/delete/124450/integrated
Del: useless -- https://master.php.net/note/delete/124450/useless
Del: bad code -- https://master.php.net/note/delete/124450/bad+code
Del: spam -- https://master.php.net/note/delete/124450/spam
Del: non-english -- https://master.php.net/note/delete/124450/non-english
Del: in docs -- https://master.php.net/note/delete/124450/in+docs
Del: other reasons-- https://master.php.net/note/delete/124450
Reject -- https://master.php.net/note/reject/124450
Search -- https://master.php.net/manage/user-notes.php