PHP xml to array

PHP xml to array

XML means Extensible Markup Language.In php programming sometimes we see some kinds of xml code.Mostly it sees on different types of api response.Most of the time we need make that type of xml to php array.Here i gave you a example of xml code and make the xml code to php array.

Parse xml to PHP array

Here i converted php xml to array and show how the array look.See i used a function simplexml_load_string().To know more about this function click the function.