note 95922 added to book.simplexml
| From: | jakep at insperia dot com | Date: | Thu, 28 Jan 2010 21:44:47 +0000 |
| Subject: | note 95922 added to book.simplexml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165469@lists.php.net to get a copy of this message | ||
If you decide to include a hyphen or a dash in the name of your attribute things get a bit
interesting. The code has to be adjusted since the name of a class method cannot contain
"-". To make it work, the attribute name has to include braces and single quotes (e.g.
"{'name'}").
Credit http://aaronz-sakai.blogspot.com
----
Server IP: 69.147.83.197
Probable Submitter: 173.77.190.29
----
Manual Page -- http://www.php.net/manual/en/book.simplexml.php
Edit -- https://master.php.net/note/edit/95922
Del: integrated -- https://master.php.net/note/delete/95922/integrated
Del: useless -- https://master.php.net/note/delete/95922/useless
Del: bad code -- https://master.php.net/note/delete/95922/bad+code
Del: spam -- https://master.php.net/note/delete/95922/spam
Del: non-english -- https://master.php.net/note/delete/95922/non-english
Del: in docs -- https://master.php.net/note/delete/95922/in+docs
Del: other reasons-- https://master.php.net/note/delete/95922
Reject -- https://master.php.net/note/reject/95922
Search -- https://master.php.net/manage/user-notes.php