My question is can we return multiple return query with single function and call them?
for example:
<?php
function addition($a, $b, $c, $d)
{
$x = $a+$b+$c+$d;
$y = $a+$b;
$z = $c+$d;
return $x;
return $y;
return $z;
}
?>
Can we call the function and get the value of $x
, $y
, $z
all together.