note 91307 added to language.oop5.object-comparison
| From: | Bob at osu1 dot php dot net | Date: | Thu, 04 Jun 2009 19:03:17 +0000 |
| Subject: | note 91307 added to language.oop5.object-comparison | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156373@lists.php.net to get a copy of this message | ||
Hi,
Is there a way to provide a custom implementation of equality testing for objects of my class?
Something like overriding the ".equals()" method in Java or the ".__eq__()"
method in Python?
Thanks,
----
Server IP: 69.147.83.197
Probable Submitter: 71.106.173.110
----
Manual Page -- http://www.php.net/manual/en/language.oop5.object-comparison.php
Edit -- https://master.php.net/note/edit/91307
Del: integrated -- https://master.php.net/note/delete/91307/integrated
Del: useless -- https://master.php.net/note/delete/91307/useless
Del: bad code -- https://master.php.net/note/delete/91307/bad+code
Del: spam -- https://master.php.net/note/delete/91307/spam
Del: non-english -- https://master.php.net/note/delete/91307/non-english
Del: in docs -- https://master.php.net/note/delete/91307/in+docs
Del: other reasons-- https://master.php.net/note/delete/91307
Reject -- https://master.php.net/note/reject/91307
Search -- https://master.php.net/manage/user-notes.php