Name
list
Synopsis
void list(mixedvalue1
[, ...valueN
])
Assigns a set of variables from elements in an array. For example:
list($first, $second) = array(1, 2); // $first = 1, $second = 2
Note: list
is actually a language construct.
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.