Can you print_r($variable) and post it here? /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ ----- Original Message ----- From: Aaron Bennett <[EMAIL PROTECTED]> To: 'Chris Lambert - WhiteCrown Networks' <[EMAIL PROTECTED]>; Aaron Bennett <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, July 08, 2001 4:34 AM Subject: RE: [PHP] Sort an array by its values | Chris, | I'm looking at ksort as i type... the problem i'm having is that i'm | trying to sort a value inside an object inside that array (rather than | paired values in an assoc. array) | -- | Aaron | | -----Original Message----- | From: Chris Lambert - WhiteCrown Networks [mailto:[EMAIL PROTECTED]] | Sent: Sunday, July 08, 2001 1:33 AM | To: Aaron Bennett | Cc: [EMAIL PROTECTED] | Subject: Re: [PHP] Sort an array by its values | | | Do you mean something like www.php.net/ksort or www.php.net/krsort? | | I'm not sure of the actual structure of your array, though, so those might | not work as expected. | | /* Chris Lambert, CTO - [EMAIL PROTECTED] | WhiteCrown Networks - More Than White Hats | Web Application Security - www.whitecrown.net | */ | | ----- Original Message ----- | From: Aaron Bennett <[EMAIL PROTECTED]> | To: Php-General (E-mail) <[EMAIL PROTECTED]> | Sent: Sunday, July 08, 2001 4:25 AM | Subject: [PHP] Sort an array by its values | | | | Hi All, | | I'm trying to sort an array of objects by the value of one of those | | objects... | | for instance, I'll have an object with 2 properties, "id" and "score", | where | | id is unique and score is its relevant (and sometimes simelar) score. i've | | tried using sort() and asort() but i can't figure how to base the sorting | | off the value (i.e. score) of the object in the array. Any help? | | -- | | Aaron | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sort an array by its values
Chris Lambert - WhiteCrown Networks Sun, 08 Jul 2001 01:13:54 -0700
- [PHP] Sort an array by its values Aaron Bennett
- Re: [PHP] Sort an array by its va... Chris Lambert - WhiteCrown Networks
- RE: [PHP] Sort an array by its va... Andrew Braund
- Re: [PHP] Sort an array by its va... Justin Farnsworth
- RE: [PHP] Sort an array by its va... Aaron Bennett
- RE: [PHP] Sort an array by it... Chris Lambert - WhiteCrown Networks
- RE: [PHP] Sort an array by its va... Aaron Bennett
- [PHP] mysql, interbase, etc kachaloo