note 102029 added to simplexmlelement.attributes

From: Date: Mon, 24 Jan 2011 10:39:48 +0000
Subject: note 102029 added to simplexmlelement.attributes
Groups: php.notes 
Request: Send a blank email to php-notes+get-176236@lists.php.net to get a copy of this message
In addition to the note from gillllberg at gmail dot com: don't forget the cast to string or int, if you want to select an attribute: Example: $color = (string)node->attributes()->color; ---- Server IP: 109.169.40.147 Probable Submitter: 89.202.163.174 ---- Manual Page -- http://www.php.net/manual/en/simplexmlelement.attributes.php Edit -- https://master.php.net/note/edit/102029 Del: integrated -- https://master.php.net/note/delete/102029/integrated Del: useless -- https://master.php.net/note/delete/102029/useless Del: bad code -- https://master.php.net/note/delete/102029/bad+code Del: spam -- https://master.php.net/note/delete/102029/spam Del: non-english -- https://master.php.net/note/delete/102029/non-english Del: in docs -- https://master.php.net/note/delete/102029/in+docs Del: other reasons-- https://master.php.net/note/delete/102029 Reject -- https://master.php.net/note/reject/102029 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176236) next »