PuStudy.Com Start write and Run your Web Code Online Work, PuStudy.Com Provide Online Web Editor, Every Language Code Work in this Editor, Editor Work Like as - Html, Php, Css, Bootstrap, Asp, jQuery Etc.
<?php $string = <<1 XML; $xml = simplexml_load_string($string); foreach($xml->foo[0]->attributes() as $a => $b) { echo $a,'="',$b,"\"\n"; } ?>