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
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