+ Start a Discussion

how to display contacts ,leads in XML format in PHP



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


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)