note 130521 added to function.list

From: Date: Sat, 18 Oct 2025 14:44:37 +0000
Subject: note 130521 added to function.list
Groups: php.notes 
Request: Send a blank email to php-notes+get-222387@lists.php.net to get a copy of this message
Since PHP 7.3, it is possible to assign to variables by reference. https://wiki.php.net/rfc/list_reference_assignment <?php $a = array(); $a[0] = 111; $a[1] =& $a[0]; $a[0] = 222; var_dump( $a ); // array(2){ [0] => &int(222) [1] => &int(222) } list( & $b, & $c ) = $a; $b = 333; var_dump( $c ); // int(333) ?> ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 78.131.54.39) ---- Manual Page -- https://php.net/manual/en/function.list.php Edit -- https://main.php.net/note/edit/130521 Del: integrated -- https://main.php.net/note/delete/130521/integrated Del: useless -- https://main.php.net/note/delete/130521/useless Del: bad code -- https://main.php.net/note/delete/130521/bad+code Del: spam -- https://main.php.net/note/delete/130521/spam Del: non-english -- https://main.php.net/note/delete/130521/non-english Del: in docs -- https://main.php.net/note/delete/130521/in+docs Del: other reasons-- https://main.php.net/note/delete/130521 Reject -- https://main.php.net/note/reject/130521 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222387) next »