By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,784 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,784 IT Pros & Developers. It's quick & easy.

NuSOAP array detection

P: n/a

I'm using NuSOAP to call a web method, that returns an array of

The trouble is, when there's only one account, NuSOAP doesn't return an
array, it just returns the associative array that is the account data.


$data = someNuSOAPCall(); // returns 1 account

$data = someNuSOAPCall(); // returns many accounts


However, this makes using it a bit more complicated then I'd like. I
need to detect if I have an array or accounts, or if I just have an
account 'object', but how can I check for a difference, asside form
using if (isset($data[0]))?

May 2 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.