News Feed

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

Travis Swicegood's Blog: Pushing the boundries of PHP

Matthew Weir O'Phinney's Blog: Zend_Form Advanced Features

Sameer Borate's Blog: Selecting all except some columns in MySQL

International PHP Magzine: Poll Question: Which is the Most Powerful PHP Tool?

Derick Rethans: Xdebug 2.3: Enhanced xdebug_debug_zval()

Community Events

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

interview php7 laravel application language example configure performance framework release podcast series opinion install conference introduction community api library symfony2

All content copyright, 2015 :: - Powered by the Solar PHP Framework