note 103235 added to simplexmlelement.attributes

From: Date: Sat, 02 Apr 2011 17:07:16 +0000
Subject: note 103235 added to simplexmlelement.attributes
Groups: php.notes 
Request: Send a blank email to php-notes+get-178438@lists.php.net to get a copy of this message
If you want to save the value of an attribute into an array, typecast it to a string. // stores an xml-element-object $dataStore['value'] = $attributes->myValue // stores the value of the attribute $dataStore['value'] = (string)$attributes->myValue ---- Server IP: 64.71.164.2 Probable Submitter: 213.47.122.14 ---- Manual Page -- http://www.php.net/manual/en/simplexmlelement.attributes.php Edit -- https://master.php.net/note/edit/103235 Del: integrated -- https://master.php.net/note/delete/103235/integrated Del: useless -- https://master.php.net/note/delete/103235/useless Del: bad code -- https://master.php.net/note/delete/103235/bad+code Del: spam -- https://master.php.net/note/delete/103235/spam Del: non-english -- https://master.php.net/note/delete/103235/non-english Del: in docs -- https://master.php.net/note/delete/103235/in+docs Del: other reasons-- https://master.php.net/note/delete/103235 Reject -- https://master.php.net/note/reject/103235 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178438) next »