Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

return two variables php

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #variables #php
ADD COMMENT
Topic
Name
3+7 =