Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
$array = json_decode(json_encode((array)simplexml_load_string($xml)),true);
Required, but never shown