I found (here) an answer regarding the way to delete a node of a SimpleXMLElement object.
The problem is I can not really understand how is that happening.
I mean, that $image var is a ref, right? So, what and where it is that $image[0][0]?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SimpleXMLElementpresents an array-like interface on its child nodes via magic methods. This behavior is because of custom__unsetbehavior that causes the SimpleXMLElement to act as though a “member” (child element) of its “array” (set of child elements) has been removed.