Is it possible to overload the == /! = Operators in php, similar to how it is done in .NET?
http://pecl.php.net/package/operator
see also:
http://webreflection.blogspot.com/2008/06/from-future-php-javascript-like-number.html
No, unfortunately, you cannot. You must create a class or member function.
Edit: oh, didn't know about this PECL package! I have to try. :)
( ), nikic Comparable, - https://github.com/nikic/comparable