note 74309 deleted from ref.domxml by sobak
| From: | sobak@php.net | Date: | Sun, 04 Dec 2016 07:13:59 +0000 |
| Subject: | note 74309 deleted from ref.domxml by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208024@lists.php.net to get a copy of this message | ||
Note Submitter: gue-gue at gmx dot de
----
Hi at All,
if you use xpath_eval() you get a xpathobject with a type-member-variable, which tells you about the
type of the found content. Here are the values and the corresponding types:
1 = XPATH_NODESET (integer)
2 = XPATH_BOOLEAN (integer)
3 = XPATH_NUMBER (integer)
4 = XPATH_STRING (integer)
I think, but don't know, that the rest of the constants are:
0 = XPATH_UNDEFINED (integer)
5 = XPATH_POINT (integer)
6 = XPATH_RANGE (integer)
7 = XPATH_LOCATIONSET (integer)
I hope i could help some people.
Greetz,
Chris