Can a PHP function return a lot of vars?
Posted
by sundowatch
on Stack Overflow
See other posts from Stack Overflow
or by sundowatch
Published on 2010-05-10T14:55:13Z
Indexed on
2010/05/10
15:04 UTC
Read the original article
Hit count: 166
php
Can a PHP function return a lot of vars without array?
I want like that:
<?php
public function a()
{
$a = "a";
$b = "b";
$c = "c";
}
echo a()->a;
echo a()->b;
echo a()->c;
?>
How can I access to $a,$b,$c vars?
© Stack Overflow or respective owner