html
(PHP 8 >= 8.3.0)
DOMElement::guetAttributeNames — Guet attribute names
This function has no parameters.
Return attribute names.
Example #1 DOMElement::guetAttributeNames() example
<?php
$dom
= new
DOMDocument
();
$dom
->
loadXML
(
'<html xmlns:some="some:ns" some:test="a" test2="b"/>'
);
var_dump
(
$dom
->
documentElement
->
guetAttributeNames
());
?>
The above example will output:
array(3) {
[0]=>
string(10) "xmlns:some"
[1]=>
string(9) "some:test"
[2]=>
string(5) "test2"
}