note 54801 added to ref.simplexml
| From: | php-general at lists dot php dot net | Date: | Fri, 15 Jul 2005 10:53:22 +0000 |
| Subject: | note 54801 added to ref.simplexml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92018@lists.php.net to get a copy of this message | ||
Testing if an element has attributes is a little fuzzy, and I haven't got a solution.
isset returns true on [0], empty returns false.
trying to echo $xml->element[0] gives nothing as an output.
but that occurs even if it has at least one argument, so you can't access them with
$xml->element[0].
----
Manual Page -- http://www.php.net/manual/en/ref.simplexml.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54801
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54801&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54801&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54801&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54801&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54801&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54801&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54801&report=yes
Search -- http://master.php.net/manage/user-notes.php