note 94409 deleted from simplexmlelement.addChild by danbrown

From: Date: Tue, 03 Nov 2009 15:53:47 +0000
Subject: note 94409 deleted from simplexmlelement.addChild by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162364@lists.php.net to get a copy of this message
Note Submitter: Andy ---- As a follow up to my last comment, this can be avoided by using the following: <? // Generates an error: // $xml->addChild('bar', $msg); // Works as expected: $bar = $xml->addChild('bar'); $bar[0] = $msg; ?>

« previous php.notes (#162364) next »