note 117677 added to function.list

From: Date: Mon, 20 Jul 2015 13:41:55 +0000
Subject: note 117677 added to function.list
Groups: php.notes 
Request: Send a blank email to php-notes+get-203144@lists.php.net to get a copy of this message
If you want use the undefined behaviour as you might expect it e.g. if you want: $b = ['a','b']; list($a, $b) = $b; to result in $a=='a' and $b=='b', then you can just cast $b to an array (even although it already is) to create a copy. e.g. $b = ['a','b']; list($a, $b) = (array)$b; and get the expected results. ---- Server IP: 72.52.91.14 Probable Submitter: 94.173.174.130 ---- Manual Page -- http://php.net/manual/en/function.list.php Edit -- https://master.php.net/note/edit/117677 Del: integrated -- https://master.php.net/note/delete/117677/integrated Del: useless -- https://master.php.net/note/delete/117677/useless Del: bad code -- https://master.php.net/note/delete/117677/bad+code Del: spam -- https://master.php.net/note/delete/117677/spam Del: non-english -- https://master.php.net/note/delete/117677/non-english Del: in docs -- https://master.php.net/note/delete/117677/in+docs Del: other reasons-- https://master.php.net/note/delete/117677 Reject -- https://master.php.net/note/reject/117677 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203144) next »