Re: XML_FastCreate child appending

From: Date: Tue, 06 Jul 2004 21:04:29 +0000
Subject: Re: XML_FastCreate child appending
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13508@lists.php.net to get a copy of this message
Le lun 05/07/2004 à 15:11, Sönke Ruempler a écrit : > Hi, Hi, > > is it possible to append a child with FastCreate after creating a node? > > such as: > > $blah = $x->div(); > $blah->span('blahblub'); > > and a result as: > > <div><span>blahblub</span></div> You can't, but you can do : $x->div( $x->span("blahblub") ); or : $blah = $x->span("blahblub"); $x->div($blah); What is the purpose please ?

« previous php.pear.general (#13508) next »