Re: PEAR::SOAP returns objects instead of associative arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux