| 28 | | According to the php.net manual, we should cast the elements to strings (see example 6): [[BR]] |
| 29 | | http://www.php.net/manual/en/simplexml.examples-basic.php |
| | 28 | According to the [http://www.php.net/manual/en/simplexml.examples-basic.php php.net manual], we should cast the elements to strings (see example 6): [[BR]] |
| | 29 | > To compare an element or attribute with a string or pass it into a function that requires a string, you must cast it to a string using `(string)`. Otherwise, PHP treats the element as an object. |