|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-02-06 14:51 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2017-02-06 14:51 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 14:00:02 2026 UTC |
Description: ------------ Array copy but don't have time to separate if at once follow function with &...$ar Test script: --------------- $ar[0]=1; $ar[1]=2; $ar[2]=3; $ar2=$ar; print_r($ar2); some_func('arg',...$ar); print_r($ar2); // same as in $ar function some_func($a, &...$arr){ $arr[0]='one'; $arr[1]='two'; $arr[2]='three'; }