adding a new node in XML file via PHP

后端 未结 3 1293
我在风中等你
我在风中等你 2020-12-29 16:30

I just wanted to ask a question .. how can i insert a new node in an xml using php. my XML file (questions.xml) is given below



        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 17:02

    You can use PHP's Simple XML. You have to read the file content, add the node with Simple XML and write the content back.

提交回复
热议问题