|
Posted by Sergei Riaguzov on 07/25/07 11:57
I have a function returning smth like list($a,$b):
var_dump says:
list(string $a, string $b) blabla()
How can use this strings now? I try:
list($a, $b) = blabla();
print($a);
but it's won't work returning empty string.
I tried also:
$result = blabla();
print $result[0];
but it also won't work.
The only thing I can do is to iterate result with foreach, then it works
nicely, but how should I use the result of blabla() function without
foreach? I just want to get to $a and $b.
Navigation:
[Reply to this message]
|