> 1. You can't override the behaviour of `<`, `<=`, `>`, `>=`, `==`, `!=` > with a userland implementation. > 2. Therefore, you won't be able to affect the internals of array functions > like `in_array`, `sort` etc.
In my opinion we should have functions which take comparator and/or equality functions as parameters even if we can override these operators. I'd like to see an outline of such a plan as part of this RFC or as a precursor to it. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php