-3

我有这个数组

Array (
    [0] => Array
        (
            [id] => 61
            [testo] => articolo di maggio
            [data] => 2013-05-03
            [orario] => 00:00:00
            [nome_files] => fabmad_1920x1200.jpg
            [pubblicato] => 1
        )

    [1] => Array
        (
            [id] => 58
            [testo] => 
            [data] => 2013-06-03
            [orario] => 00:00:00
            [nome_files] => 20130603100647_da_installare.rtf
            [pubblicato] => 1
        )

    [2] => Array
        (
            [id] => 59
            [testo] => Demo
            [data] => 2013-06-03
            [orario] => 00:00:00
            [nome_files] => eye_drops_water_2.jpg
            [pubblicato] => 1
        )


)

我想按“数据”对其进行排序。我想显示“数据”和每个数据的元素......

4

1 回答 1

0

尝试 ksort 函数或 array-multisort

检查 php 文档: http: //php.net/manual/en/function.ksort.php http://php.net/manual/en/function.array-multisort.php

于 2013-06-03T19:58:55.287 回答