0

We use API for get data. In API has multi product data. But we get it in XML. How to convert it in array; so we save it it particular product.

  • I think $array = json_decode(json_encode((array)simplexml_load_string($xml)),true); should help. – Mohit Kumar Arora Jun 19 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.