note 112824 rejected from simplexml.examples-basic by cmb

From: Date: Thu, 04 Jun 2015 21:54:39 +0000
Subject: note 112824 rejected from simplexml.examples-basic by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-202750@lists.php.net to get a copy of this message
Note Submitter: dmitron1036 at mail dot ru ---- Hello, everyboady! How can I change attributes in xml object? like this: $children[0]["@attributes"]['x'] = '0'; I try: $children = $xml->children(); var_dump($children[0]["@attributes"]);//"NULL" var_dump($children[0]);//(2) ["@attributes"]=>array(1) {['x']=> string(1) '2'}

« previous php.notes (#202750) next »