remove xml version tag when a xml is created in php

前端 未结 10 1891
星月不相逢
星月不相逢 2020-11-28 10:28

I\'m creating a xml using this

$customXML = new SimpleXMLElement(\'\');

after adding some attributes onto this, when

10条回答
  •  不知归路
    2020-11-28 11:15

    If this is a problem, this should do it:

    $xml = str_replace(' version="1.0"', '', $xml);`
    

提交回复
热议问题