I'm playing around with PHP's DOMDocument at the moment. As the question states, what are the differences between these two methods (other than needing to pas a DOMAttr to setAttributeNode) and in what situations should each be used?
I'm playing around with PHP's DOMDocument at the moment. As the question states, what are the differences between these two methods (other than needing to pas a DOMAttr to setAttributeNode) and in what situations should each be used?