3 ms·Tuple unpacking: t = (1, 2) a, b = t # a == 1 and b == 2 Using slices is normal with listsby pekk 13y agoTuple unpacking: t = (1, 2) a, b = t # a == 1 and b == 2 Using slices is normal with listsalien3d 13y agoCool like this,hope implement in php. No need to explodeArdren 13y agoPHP has the list construct which is a little uglier, and has a couple of odd behaviors php > $t = array(1, 2); php > list($a, $b) = $t; php > echo "$a, $b"; 1, 2