Skip to content
Wizard Commerce

Wizard Commerce

Magento / Adobe Commerce Specialists

  • HOME
  • About Us
  • Services
  • Contact
  • Blog
Posted on 27th Jan 2025 by wizardcommerce

Convert XML to JSON with PHP

$xml = simplexml_load_string($xmlString, null, LIBXML_NOCDATA);
$json = json_encode($xml);

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
Like Loading...

Related

CategoriesPHP

Post navigation

Previous PostPrevious 3 ways to check if a Javascript object property exists
Next PostNext How to use git push
Create a website or blog at WordPress.com
  • Reblog
  • Subscribe Subscribed
    • Wizard Commerce
    • Already have a WordPress.com account? Log in now.
    • Wizard Commerce
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d