Reply to Re: [PHP] PEAR::SOAP returns objects instead of associative arrays

Your name:

Reply:


Posted by Jochem Maas on 10/04/72 11:07

William Lovaton wrote:
> Hello,
>
> I just found out that since version 0.7, PEAR::SOAP returns stdClass
> objects instead of associative arrays.
> http://pear.php.net/package-changelog.php?pacid=87&release=0.7.3
>
> What is the reason for this? I _need_ to get associative arrays, how do
> I revert to the old behavior?

lets say that you have a return value from PEAR::SOAP in the variable $a....
does the following give you what you need?:

$a = (array) $a;


>
>
> -William
>

[Back to original 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

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