Re: [PHP-DEV] RFC: SPL Comparator interface

2008-10-08 Thread Marcus Boerger
Hello Jeremy, Wednesday, October 8, 2008, 12:50:23 AM, you wrote: > Something that would be extremely useful is a comparator interface in > SPL, which could be used to easily implement sorting for objects. > Example: > class Foo implements Comparator > { > // is numeric for this exampl

[PHP-DEV] RFC: SPL Comparator interface

2008-10-07 Thread Jeremy
Something that would be extremely useful is a comparator interface in SPL, which could be used to easily implement sorting for objects. Example: class Foo implements Comparator { // is numeric for this example public $bar; //implements compare method from Comparator int