note 73722 added to language.oop5.object-comparison

From: Date: Wed, 07 Mar 2007 22:17:42 +0000
Subject: note 73722 added to language.oop5.object-comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-124211@lists.php.net to get a copy of this message
<? class _testCompare { public $num=4; } $o1=new _testCompare; $o2=new _testCompare; echo 'Both eq: ',($o1==$o2?'true':'false'),"\n<br />\n"; $o2->num=8; echo 'No eq: ',($o1==$o2?'true':'false'),"\n<br />\n"; $o2->num=4; echo 'Both eq: ',($o1==$o2?'true':'false'),"\n<br />\n"; $o2->num='4'; echo 'Both paraeq: ',($o1==$o2?'true':'false'),"\n<br />\n"; /* output: Both eq: true No eq: false Both eq: true Both paraeq: true */ ?> ---- Server IP: 212.24.129.110 Probable Submitter: 83.240.13.106 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.object-comparison.php Edit -- https://master.php.net/note/edit/73722 Del: integrated -- https://master.php.net/note/delete/73722/integrated Del: useless -- https://master.php.net/note/delete/73722/useless Del: bad code -- https://master.php.net/note/delete/73722/bad+code Del: spam -- https://master.php.net/note/delete/73722/spam Del: non-english -- https://master.php.net/note/delete/73722/non-english Del: in docs -- https://master.php.net/note/delete/73722/in+docs Del: other reasons-- https://master.php.net/note/delete/73722 Reject -- https://master.php.net/note/reject/73722 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124211) next »