note 125438 added to class.simplexmlelement

From: Date: Thu, 15 Oct 2020 02:20:25 +0000
Subject: note 125438 added to class.simplexmlelement
Groups: php.notes 
Request: Send a blank email to php-notes+get-215595@lists.php.net to get a copy of this message
Further to rmirabelle's comment, to compare two SimpleXML elements, do the comparison between the objects returned by the dom_import_simplexml function, as per: <?php if(dom_import_simplexml($simplexml_element_1)===dom_import_simplexml($simplexml_element_2)){ ... } ?> You must ensure that both are SimpleXML elements before conversion to DOM objects. ---- Server IP: 45.112.84.4 Probable Submitter: 101.0.109.162 (proxied: 203.219.159.106) ---- Manual Page -- http://php.net/manual/en/class.simplexmlelement.php Edit -- https://master.php.net/note/edit/125438 Del: integrated -- https://master.php.net/note/delete/125438/integrated Del: useless -- https://master.php.net/note/delete/125438/useless Del: bad code -- https://master.php.net/note/delete/125438/bad+code Del: spam -- https://master.php.net/note/delete/125438/spam Del: non-english -- https://master.php.net/note/delete/125438/non-english Del: in docs -- https://master.php.net/note/delete/125438/in+docs Del: other reasons-- https://master.php.net/note/delete/125438 Reject -- https://master.php.net/note/reject/125438 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#215595) next »