note 91307 deleted from language.oop5.object-comparison by danbrown
| From: | danbrown@php.net | Date: | Thu, 04 Jun 2009 19:10:01 +0000 |
| Subject: | note 91307 deleted from language.oop5.object-comparison by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156374@lists.php.net to get a copy of this message | ||
Note Submitter: Bob
----
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,