📜  php 公式返回更多结果 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:47.891000             🧑  作者: Mango

代码示例1
function getXYZ()
{
    return array(4,5,6);
}

list($x,$y,$z) = getXYZ();

// Afterwards: $x == 4 && $y == 5 && $z == 6
// (This will hold for all samples unless otherwise noted)