|
Posted by Sergei Riaguzov on 07/25/07 12:16
On Wed, 25 Jul 2007 14:08:58 +0200, Rik wrote:
>>> list($one, $two) = blabla();
>> I tried applying array(blabla())
> Huh?
I'm a little bit confused by this list/array thing so that was probably
the stupid thing..
>> but it won't work either. I can only
>> iterate the result with foreach...
> if it is an array, and you cannout use list(), the array may not be
> numerically indexed.
Thanx for a hint!
I ended up with smth like:
$result = blabla();
$a = array_shift($result);
$b = array_shift($result);
Navigation:
[Reply to this message]
|