News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Eirik Hoem's Blog:
Array problems with SOAP and PHP - Updated
March 13, 2008 @ 10:22:19

Eirik Hoem has posted an update on a previous problem he was having when working with SOAP in PHP and its handling of arrays.

The scenario was that when an array with only one object was returned over SOAP the array was discarded and pointed straight to the single object.

Come to find out, this behavior wasn't a bug, it was a feature - the fix is to add another parameter to the initialization of the SoapClient to add the SOAP_SINGLE_ELEMENT_ARRAYS feature.

0 comments voice your opinion now!
soap gotcha array problem soapsingleelementarrays feature bug


blog comments powered by Disqus

Similar Posts

Anthony Ferrara: A Point On MVC And Architecture

PHPBuilder.com.au: Powerful Web Services with PHP and SOAP

Michael Kimsal: Purpose of Benchmarking Framework Speed

Software Gunslinger: PHP is meant to die

Zend Developer Zone: It's That Time Again - Announcing August's ZF Bug Hunting Days


Community Events

Don't see your event here?
Let us know!


series version opinion conference community performance extension framework laravel voicesoftheelephpant podcast library introduction symfony2 php7 example interview api application release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework