function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anil.ax822anil.ax822 

how to display contacts ,leads in XML format in PHP

Hi,

 

I have PHP page which returns contacts.leads.my task is to show these contacts.leads in xml format.

 

Please provide me some code or links for this one

ktshannonktshannon

The API will return the data into the array. If you are looking to turn that array into XML you will need to loop through the array and manually echo out the formats of XML you want (may be the best solution) or look into SimpleXML (http://php.net/manual/en/book.simplexml.php)

 

Kyle