PHP - Return multiple value from function

function getXYZ()
{
    return array(1,2,3);
}

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

Post a Comment

0 Comments