note 109096 modified in simplexmlelement.addchild by danbrown
| From: | danbrown@php.net | Date: | Tue, 26 Jun 2012 14:04:45 +0000 |
| Subject: | note 109096 modified in simplexmlelement.addchild by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188858@lists.php.net to get a copy of this message | ||
SimpleXmlElement who works with Soap with
ampersand. <?php class SoapXMLElement
extends SimpleXMLElement { public function
addChild ($key, $value) { $value = str_replace('&',
'&', $value); parent::addChild($key,
$value); } } ?>
--was--
SimpleXmlElement who works with Soap with ampersand.
class SoapXMLElement extends SimpleXMLElement
{
public function addChild ($key, $value) {
$value = str_replace('&', '&', $value);
parent::addChild($key, $value);
}
}
http://php.net/manual/en/simplexmlelement.addchild.php