![]() |
|
|
|
|
|
|
4
4th November 09:01
External User
Posts: 1
|
no problem; but just fyi, its not a bug; the behavior is as expected per the
manual: http://us3.php.net/manual/en/ref.simplexml.php *Example#6 Comparing Elements and Attributes with Text* 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. if you use an operation that casts implicitly, such as echo, you dont have to cast yourself; otherwise you do ![]() -nathan |
|
|
|
| Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php |