Re: Copying HTML from a document to another document

From: Date: Sun, 19 Sep 2004 23:00:56 +0000
Subject: Re: Copying HTML from a document to another document
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-12910@lists.php.net to get a copy of this message
On Sun, 19 Sep 2004, Sam Hobbs wrote: > I think it is reasonable to ask for the one or two lines of PHP code that > solves the problem. As I have said, I did try to do it myself. foreach ($ContentsDocument->childNodes as $Node) { $n = $Document->importNode($Node, true); $Cell->appendChild($n); } -adam -- adam@trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today!

« previous php.internals (#12910) next »