Hi, im just wondering if some how possible to return 2 values from the same function that arn't conditional, that is it always returns 2 values.
for e.g. (this is not what my function actually does)
If that is not possible, how can i use global varibles in php, i don't seem to able use them for some reason they don't seem to be recognised within functions even if i define them before defining the functions.
Any Help with this Matter is greatly apprecaited Thanks,
for e.g. (this is not what my function actually does)
Code:
function myfunction($input1, $input2){
$output1 = $input1 + 1
$output2 = $input2 + 2
return $output1;
return $output2; // i know this won't work but is there a way to achive this
}
Any Help with this Matter is greatly apprecaited Thanks,
Comment