Formatting SOAP output
Posted: Sun Dec 27, 2009 11:33 am
So I can't for the life of me figure out a decent way to format some data that a soap client is spitting at me.
I am pulling the contacts from an email system. The SOAP API we use gives it to me in an array. here is an example of the output.
( [id] => 10868208 [firstname] => name [lastname] => last [nickname] => [email] => [favorite] => 0 [email2] => [email3] => [h_phone] => [b_phone] => [mobile_phone] => XXX XXX XXXX [fax] => [h_street1] => [h_street2] => [h_city] => [h_state] => [h_zip] => [h_country] => [b_street1] => [b_street2] => [b_city] => [b_state] => [b_zip] => [b_country] => [label] => [job_title] => [company] => [other_phone] => [other_street1] => [other_street2] => [other_city] => [other_state] => [other_zip] => [other_country] => [website] => [blog] => [other_website] => [aol_account] => [yahoo_account] => [google_account] => [icq_account] => [other_account] => )
These are seperated by [n] => stdClass Object where n= ascending number per entry.
Anyone have any decent ideas about how to organize this data, so that I can output it into a table format or something of the like?
Thanks in advance,
Harry
I am pulling the contacts from an email system. The SOAP API we use gives it to me in an array. here is an example of the output.
( [id] => 10868208 [firstname] => name [lastname] => last [nickname] => [email] => [favorite] => 0 [email2] => [email3] => [h_phone] => [b_phone] => [mobile_phone] => XXX XXX XXXX [fax] => [h_street1] => [h_street2] => [h_city] => [h_state] => [h_zip] => [h_country] => [b_street1] => [b_street2] => [b_city] => [b_state] => [b_zip] => [b_country] => [label] => [job_title] => [company] => [other_phone] => [other_street1] => [other_street2] => [other_city] => [other_state] => [other_zip] => [other_country] => [website] => [blog] => [other_website] => [aol_account] => [yahoo_account] => [google_account] => [icq_account] => [other_account] => )
These are seperated by [n] => stdClass Object where n= ascending number per entry.
Anyone have any decent ideas about how to organize this data, so that I can output it into a table format or something of the like?
Thanks in advance,
Harry