📅  最后修改于: 2022-03-11 14:53:40.105000             🧑  作者: Mango
// define array
$array = ['a', 'b', 'c'];
// without list()
$a = $array[0];
$b = $array[1];
$c = $array[2];
// with list()
list($a, $b, $c) = $array;