Re: [PHP] usort inside a class

2008-05-09 Thread It flance
It works thanks a lot! --- On Fri, 5/9/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > From: Richard Heyes <[EMAIL PROTECTED]> > Subject: Re: [PHP] usort inside a class > To: [EMAIL PROTECTED] > Cc: php-general@lists.php.net > Date: Friday, May 9, 2008, 8:47 PM >

Re: [PHP] usort inside a class

2008-05-09 Thread Richard Heyes
i'm trying to build a class that sorts a multidimensional array. I'm using the php function "usort". I declared the comparision function as a method of my class but i'm unable to give it as argument to the function usort. this "usort($this->arr, $this->cmpi)" gaves the following error: usort()