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

Posted by Rik on 07/25/07 12:08

On Wed, 25 Jul 2007 14:05:12 +0200, Sergei Riaguzov <hello@world.com> =

wrote:

> On Wed, 25 Jul 2007 05:00:43 -0700, Sjoerd wrote:
>
>>> I have a function returning smth like list($a,$b):
>>> var_dump says:
>>> list(string $a, string $b) blabla()
>> This doesn't make sense. I cannot imagine that var_dump() outputs thi=
s.
> This function is generated by SoapClient from WSDL, so I can't change =
it.
>
>> function blabla() {
>> // note: use array() to construct an array, not list() return
>> array("some", "thing");
>> }
>>
>> list($one, $two) =3D blabla();
> I tried applying array(blabla())

Huh?

> 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.
-- =

Rik Wasmus

 

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

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