PHP code inside XML?

前端 未结 7 2127
名媛妹妹
名媛妹妹 2021-01-06 13:56

is it possible to put PHP code inside a XML document to be later executed? For example, can I say \" />

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-06 14:08

    If you run the XML file as a PHP script, then yes. The output of the script will be valid XML, but the file that contains the inline PHP will most likely not be valid XML.

提交回复
热议问题