In a way it is When you login into a website or into your mail box, you are interacting with a form. Note that you must provide the namespace if you want to access an attribute of a non-default namespace: // You can access an element's attribute just like this : // This will save the value of the attribute, and not the objet, Tip to get a real array of all attributes of a node (not SimpleXML's object acting like an array), //- get all attributes, this is not a real array. defined by attributes can then be inspected at runtime using the PHP 8 is a major version and has breaking changes from previous versions. getAttribute Example