Comparison operator overloading in php

前端 未结 3 1849
抹茶落季
抹茶落季 2020-12-18 08:02

Is it possible to overload the ==/!= operators in php, similar to the way it\'s done in .NET?

3条回答
  •  臣服心动
    2020-12-18 08:44

    http://pecl.php.net/package/operator

    see this as well:

    http://webreflection.blogspot.com/2008/06/from-future-php-javascript-like-number.html

提交回复
热议问题