如果你有類似的東西,PHP SimpleXML,如何設置屬性?
<hello id="1" name="myName1">
<anotherTag title="Hello">
</anotherTag>
</hello>
<hello id="2" name="myName2">
<anotherTag title="Hi">
</anotherTag>
</hello>
如何改變的屬性,例如,你好ID 2,名稱=「威廉」?或標題嗨,你好?
非常感謝您的atention, H」