Is it possible to overload the ==/!= operators in php, similar to the way it's done in .NET?
http://pecl.php.net/package/operator
see this as well:
http://webreflection.blogspot.com/2008/06/from-future-php-javascript-like-number.html
Just for reference (as this identical question has been asked several times today), nikic has just posted details of a Comparable interface that overloads comparison operators for objects - https://github.com/nikic/comparable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With