简体   繁体   中英

Reading and writing an XML file with PHP

I have 2 text boxes and a radio button. When the user clicks submit I it to generate a XML file with the fallowing format.

<object>
    <string1>$string1</string1>
    <string2>$string2</string2>
    <bool>$myBoolean</bool>
</object>

After that I want to be able to read through the file and display it.

SimpleXML应该使您开始工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM