Successfully parsed SimpleXMLElement comparison to 'false' returning 'true'
问题 I got a very awkward and specific issue with a simplexml evaluation. The code: $simplexml = simplexml_load_string($xmlstring); var_dump($simplexml); var_dump($simplexml == false); //this comparison var_dump($simplexml) returns the actual structure of my simplexml but the comparison returns 'true' for this specific simplexml, which I can't show the structure because of my contract. I'm sure that's very specifc issue 'cause I tried other XML strings and the comparison returns 'false'.