Jump to content

PHP Multi-Dim Array Sorting Question...


thepip3r

Recommended Posts

if i have an array that looks like:

 

[EPM] => Array
                (
                    [0] => Array
                        (
                            [uts] => 1255849200
                            [amount] => 6.45
                        )

                    [1] => Array
                        (
                            [uts] => 1255852800
                            [amount] => 7.32
                        )

                    [2] => Array
                        (
                            [uts] => 1255856400
                            [amount] => 7.12
                        )

                    [3] => Array
                        (
                            [uts] => 1255860000
                            [amount] => 7.03
                        )

                    [4] => Array
                        (
                            [uts] => 1255863600
                            [amount] => 7.38
                        )

 

...how can i sort "EPM" based off of the ['EPM'][$x]['amount'] value?  any pointers?

Link to comment
https://forums.phpfreaks.com/topic/185278-php-multi-dim-array-sorting-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.