sort associative array PHP

Posted by jim smith on Stack Overflow See other posts from Stack Overflow or by jim smith
Published on 2010-03-18T10:44:35Z Indexed on 2010/03/18 10:51 UTC
Read the original article Hit count: 208

Filed under:
|
|

Here's my array, how do I sort it by saleref?

Array
(
    [xml] => Array
        (
            [sale] => Array
                (
                    [0] => Array
                        (
                            [saleref] =>  12345
                            [saleline] =>   1
                            [product] => producta
                            [date] => 19/ 3/10
                            [manifest] =>       0
                            [qty] =>     1
                            [nextday] => 
                            [order_status] => 
                        )

                    [1] => Array
                        (
                            [saleref] =>  12344
                            [saleline] =>   1
                            [product] => productb
                            [date] => 18/ 3/10
                            [manifest] =>   11892
                            [qty] =>     1
                            [nextday] => 
                            [order_status] => 
                        )

© Stack Overflow or respective owner

Related posts about php

Related posts about associative