You are here: Re: problems with list.. « PHP Programming Language « IT news, forums, messages
Re: problems with list..

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация