Can someone let me know how to return TWO variables from a function
Try http://www.php.net/manual/en/language.references.php
The function can return an array that include two or more variables.
Nadim Attari [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can someone let me know how to return TWO variables from a function
Try http://www.php.net/manual/en/language.references.php
--
PHP General Mailing
Roy W [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can someone let me know how to return TWO variables from a function
I tried:
return $var1, $var2;
But I get parse errors and other errors.
function ReturnMultiValues($a, $b, $c, $d) {
return array($a, $b, $c, $d);
}
3 matches
Mail list logo