note 100278 added to simplexml.examples

From: Date: Tue, 05 Oct 2010 21:11:53 +0000
Subject: note 100278 added to simplexml.examples
Groups: php.notes 
Request: Send a blank email to php-notes+get-172985@lists.php.net to get a copy of this message
I wish someone would delete "posthy at NOSPAM dot com"'s post for trolling. Why would you cast a SimpleXMLElement to a bool and then to a string and then a bool. That's completely retarded. To access the value in <root> <value /> </root> in his case would be $xmlobj->value[0] See the 0? That's the first element of the child "value". ---- Server IP: 69.147.83.197 Probable Submitter: 94.209.181.54 ---- Manual Page -- http://www.php.net/manual/en/simplexml.examples.php Edit -- https://master.php.net/note/edit/100278 Del: integrated -- https://master.php.net/note/delete/100278/integrated Del: useless -- https://master.php.net/note/delete/100278/useless Del: bad code -- https://master.php.net/note/delete/100278/bad+code Del: spam -- https://master.php.net/note/delete/100278/spam Del: non-english -- https://master.php.net/note/delete/100278/non-english Del: in docs -- https://master.php.net/note/delete/100278/in+docs Del: other reasons-- https://master.php.net/note/delete/100278 Reject -- https://master.php.net/note/reject/100278 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172985) next »