si vous avez quelque chose comme,PHP SimpleXML, comment définir les attributs?
<hello id="1" name="myName1">
<anotherTag title="Hello">
</anotherTag>
</hello>
<hello id="2" name="myName2">
<anotherTag title="Hi">
</anotherTag>
</hello>
Comment changer les attributs, par exemple, bonjour id 2, pour name = "William"? Ou le titre salut à bonjour?
Merci beaucoup pour votre atention, H »