Re: [SOAP] StdClass Object returned from __soapCall???
| From: | Michael Rasmussen | Date: | Thu, 06 Jul 2006 20:12:03 +0000 |
| Subject: | Re: [SOAP] StdClass Object returned from __soapCall??? | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2353@lists.php.net to get a copy of this message | ||
On Thu, 06 Jul 2006 12:36:00 -0400, Adam Maccabee Trachtenberg wrote:
>
> However, if you prefer it as an array, typecast it:
>
> $array = (array) $object;
>
This should not be necessary since stdObject implements Iterator in which
case the foreach construct should suffice as with arrays.
foreach (stdObject object as $item)
print "$item\n";
--
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917