Is it possible to overload the ==/!= operators in php, similar to the way it's done in .NET?
+3
A:
http://pecl.php.net/package/operator
see this as well:
http://webreflection.blogspot.com/2008/06/from-future-php-javascript-like-number.html
Spencer
2010-06-24 16:04:06
A:
No, unfortunately you can't. You should create a class or member function.
Edit : oh, didn't know about this PECL package ! I should try it. :)
Pikrass
2010-06-24 16:04:28