note 79573 deleted from function.dom-domcomment-construct by felipe

From: Date: Sun, 16 Dec 2007 01:26:49 +0000
Subject: note 79573 deleted from function.dom-domcomment-construct by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133613@lists.php.net to get a copy of this message
Note Submitter: misterffoeg not at hotmail dot name Reason: 1 ---- <?php class MyDOM extends DOMDocument{ function createElement($tag_name){ $element = new MyElement($tag_name); $this -> importNode($element); return $element; } } class MyElement extends DOMElement{ // W00T! now I can have special functions in a node! } $dom = new MyDOM; $element = $dom -> createElement('a'); $dom -> appendChild($element); echo $dom -> saveXML(); ?>

« previous php.notes (#133613) next »