function test() { $a=array("1","2","3"); $b=array("3","4"); return $a; return $b; }
$getvalue=test();
it only get the last return value if i need more than one value ,how can it be done?
Make an array with the values in it and return that.
in other words, put your first 2 arrays into a third array and return that. something like:
$a=array("1","2","3"); $b=array("3","4"); $c=array($a, $b); return $c;
or u can use array_merge()