What PHP framework is better for XML support? How to fix it

Source: Internet
Author: User
Tags php framework what php
What PHP framework is better for XML support?
Recently do a project, data storage is a number of XML format files, to read and write, query and other operations! Ask everyone php talent, is there any good PHP framework?
------to solve the idea----------------------
PHP provides 3 sets of XML parsing functions (classes) is not enough for you?
------to solve the idea----------------------
Write an XML operation class yourself
------to solve the idea----------------------
The PHP core provides a lot of functions and extensions that can read and write XML well.
------to solve the idea----------------------
The SimpleXML extension provides a very simple and easy-to-use toolset that transforms XML into an object with generic property selectors and array iterators.

XML to Array

if (file_exists (' Test.xml ')) {
$xml = simplexml_load_file (' Test.xml ');
Print_r ($xml);
} else {
Exit (' Failed to open test.xml. ');
}


------to solve the idea----------------------
It feels better to be simplexml.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.