|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-13 16:43 UTC] vrana@php.net
[2009-11-13 16:48 UTC] svn@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 13:00:02 2026 UTC |
Description: ------------ In the docs, it is stated that list() doesn't return anything. However, this is simply not the case: list() returns the array it was given. Reproduce code: --------------- --- From manual page: function.list#Return Values --- var_dump(list($a) = array(1, 2)); Expected result: ---------------- NULL Actual result: -------------- array(2) { [0]=> int(1) [1]=> int(2) }