Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:25 PM, Ashley Sheridan wrote: > On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote: > > On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan > wrote: > > I've not had to do this before, and now that I am, I've hit a bit of a > wall: > > Basically, I've an array that

Re: [PHP] Using usort in a class

2010-04-22 Thread Ashley Sheridan
On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote: > On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan > wrote: > > I've not had to do this before, and now that I am, I've hit a > bit of a > wall: > > Basically, I've an array that might look like th

Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan wrote: > I've not had to do this before, and now that I am, I've hit a bit of a > wall: > > Basically, I've an array that might look like this (the number of > elements may vary, but the letter is always unique and remains a single > character): > >

[PHP] Using usort in a class

2010-04-22 Thread Ashley Sheridan
I've not had to do this before, and now that I am, I've hit a bit of a wall: Basically, I've an array that might look like this (the number of elements may vary, but the letter is always unique and remains a single character): Array( 0 => '2h' 1 => '1d' 2 => '2w' ) And I need to sort