note 103677 added to simplexmlelement.attributes

From: Date: Wed, 27 Apr 2011 20:12:39 +0000
Subject: note 103677 added to simplexmlelement.attributes
Groups: php.notes 
Request: Send a blank email to php-notes+get-179206@lists.php.net to get a copy of this message
<?php $att = 'attribueName'; // You can access an element's attribute just like this : $attribute = $element->attributes()->$att; // This will save the value of the attribute, and not the objet $attribute = (string)$element->attributes()->$att; // You also can edit it this way : $element->attributes()->$att = 'New value of the attribute'; ?> ---- Server IP: 69.147.83.197 Probable Submitter: 85.5.114.25 ---- Manual Page -- http://www.php.net/manual/en/simplexmlelement.attributes.php Edit -- https://master.php.net/note/edit/103677 Del: integrated -- https://master.php.net/note/delete/103677/integrated Del: useless -- https://master.php.net/note/delete/103677/useless Del: bad code -- https://master.php.net/note/delete/103677/bad+code Del: spam -- https://master.php.net/note/delete/103677/spam Del: non-english -- https://master.php.net/note/delete/103677/non-english Del: in docs -- https://master.php.net/note/delete/103677/in+docs Del: other reasons-- https://master.php.net/note/delete/103677 Reject -- https://master.php.net/note/reject/103677 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179206) next »