标签: php
在PHP中,我有一个包含3个值的数组。我想将这3个值存储在3个变量中。
$my_values = array(5,6,7);
答案 0 :(得分:0)
[$x, $y, $z] = $my_values;
或
list($x, $y, $z) = $my_values;