Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php $string = <<<XML <a> <foo name="one" game="lonely">1</foo> </a> XML; $xml = new SimpleXMLElement($string); foreach($xml->foo[0]->attributes() as $a => $b) { echo $a,'="',$b,"\"\n"; }
Snippet created on July 5 2023 at 09:56 UTC
Settings
Get link