I am getting the results array back from a soap request, using nusoap. The result is pretty complex and deeply structured, and am finding that where multiple tags of the same name are returned, nusoap adds another level of array, but where only one tag of one name is returned the array structure lacks that extra depth. This means that I have to check for 1 only or more than one and extract differently (actually, i then just interpose an extra layer so that it is compatible). It is a pain though, as i have to do this check for most layers (which can be 3 or 4 deep).
I have looked at the original XML response, and this extra layer is not reflected in there, it is just that an assoc array (obviously) cannot have more than one index of the same name.
Anyone else got any better solutions to this?
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.