$account[15] isn't very useful at all! It's what you get from SearchAccountsResponse (for example).
Sorry for not expressing the above clearly - it might be easier with a code sample.
The only (small) point here is about idiom. In those parts of the zimbra api where attributes are used extensively, programmers should expect to use xpath or SimpleXML on the soap responses.
<?php //PHP5
$soap_response_style_a = <<<XML
<account>
<givenName>John</givenName>
<sn>Smith</sn>
</account>
XML;
$soap_response_style_b = <<<XML
<account>
<a n="givenName">John</a>
<a n="sn">Smith</a>
</account>
XML;
$xml_a = simplexml_load_string($soap_response_style_a);
$xml_b = simplexml_load_string($soap_response_style_b);
print "With style 'a', the associative array returned by SoapClient->__soapCall():\n";
print "See: http://au.php.net/manual/en/function.soap-soapclient-soapcall.php\n";
print "looks a bit like this (useful):\n";
print_r($xml_a);
print "With style 'b', (used in zimbra's <SearchAccountsResponse>)\n";
print "The associative array returned by SoapClient->__soapCall()\n";
print "looks a bit like this (useless):\n";
print_r($xml_b);
?>
This script will display:
With style 'a', the associative array returned by SoapClient->__soapCall():
See:
http://au.php.net/manual/en/function...t-soapcall.php
looks a bit like this (useful):
SimpleXMLElement Object
(
[givenName] => John
[sn] => Smith
)
With style 'b', (used in zimbra's <SearchAccountsResponse>)
The associative array returned by SoapClient->__soapCall()
looks a bit like this (useless):
SimpleXMLElement Object
(
[a] => Array
(
[0] => John
[1] => Smith
)
)