note 97246 added to simplexmlelement.addAttribute

From: Date: Fri, 09 Apr 2010 21:03:58 +0000
Subject: note 97246 added to simplexmlelement.addAttribute
Groups: php.notes 
Request: Send a blank email to php-notes+get-168096@lists.php.net to get a copy of this message
When using addAttribute, you can string addChild and addAttribute into one line like so: <?php $xml->addChild("info","some text")->addAttribute("type","sometype"); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 74.242.249.36 ---- Manual Page -- http://www.php.net/manual/en/simplexmlelement.addAttribute.php Edit -- https://master.php.net/note/edit/97246 Del: integrated -- https://master.php.net/note/delete/97246/integrated Del: useless -- https://master.php.net/note/delete/97246/useless Del: bad code -- https://master.php.net/note/delete/97246/bad+code Del: spam -- https://master.php.net/note/delete/97246/spam Del: non-english -- https://master.php.net/note/delete/97246/non-english Del: in docs -- https://master.php.net/note/delete/97246/in+docs Del: other reasons-- https://master.php.net/note/delete/97246 Reject -- https://master.php.net/note/reject/97246 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168096) next »