Re: Equality and relative ordering of objects

From: Date: Fri, 22 Jun 2018 12:39:45 +0000
Subject: Re: Equality and relative ordering of objects
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-102367@lists.php.net to get a copy of this message
> 1. You can't override the behaviour of <, * > à¢�QLáÌÅz³y<=, >, > >=, ==, > != > 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.

« previous php.internals (#102367) next »