Whats the difference between setAttribute & setAttributeNode?

Viewed 4626

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?

1 Answers
Related