LIST
Assign variables as if they were an array
SYNTAX
list ( mixed $var1 [, mixed $... ] ) : array
PARAMETERS
var1
A variable.
RETURN
Returns the assigned array.
EXAMPLES
1
coffee is brown and caffeine makes it special.
coffee has caffeine.
I need caffeine!
NULL
2
3
int(1)
int(2)
int(3)
4
Array
(
[2] => coffee
[1] => brown
[0] => caffeine
)
5
array(4) {
[2]=>
string(1) "a"
["some"]=>
string(1) "b"
[0]=>
string(1) "c"
[1]=>
string(1) "d"
}
string(1) "c"
string(1) "d"
string(1) "a"
6
2, 4