I have been trying to retrieve the contact list for a given user, but so far i had no luck working through the array. I have been using:
$contacts = $f->contacts_getPublicList($nsid);
For some reason I can not create a foreach statement that effectively retrieves the information I need, such as username for example. I tried to take other functions as an example but no luck. The array prints fine, just having troubles to create working foreach statement.
Something like $contacts[0]["_attributes"]["username"] works but is hardly useful in this case. Any suggestions?