PHP 8.5.0 Alpha 4 available for testing

Voting

: five minus zero?
(Example: nine)

The Note You're Voting On

ms dot n at 163 dot com
14 years ago
Adds a new function for SimpleXMLElement class, in order to output HTML code.

<?php
class CeiXML extends SimpleXMLElement{
public function
asHTML(){
$ele=dom_import_simplexml($this);
$dom = new DOMDocument('1.0', 'utf-8');
$element=$dom->importNode($ele,true);
$dom->appendChild($element);
return
$dom->saveHTML();
}
}
?>

<< Back to user notes page

To Top