Using PHP, convert XML data structure to JSON and convert XML to PHP Array

How to convert XML to JSON using PHP

If you want to take the XML, convert it to JSON and then to an array you can use within your PHP instance, add one more line:


Was this blog post helpful for you?

Support my blog and donate!

My blog is open to the public and will always be freely available. With your donation, we can help others learn, together.

Donate in Bitcoin: