如何根据GID获取List数组值?

时间:2016-02-23 17:06:48

标签: arrays

这是数组结构。如何根据GID获取List数组值?

阵 (     [0] =>排列         (             [GID] => 1             [列表] =>排列                 (                     [0] =>排列                         (                             [CID] => 24                             [姓名] =>内存                         )

                [1] => Array
                    (
                        [CID] => 33
                        [Name] => Sam
                    )                )
    )
[1] => Array
    (
        [GID] => 2
        [List] => Array
            (
                [0] => Array
                    (
                        [CID] => 38
                        [Name] => Rohan Seth
                    )
            )
    )
[2] => Array
    (
        [GID] => 3
        [List] => Array
            (
                [0] => Array
                    (
                        [CID] => 25
                        [Name] => Robin Roy
                    )

1 个答案:

答案 0 :(得分:0)

难道你不能写它,所以GID是数组顶层的关键,这样排序吗?

array = [GID][list][0][etc..],
        [GID][list][0][etc..]

警告,伪代码,因为我不知道你需要哪种语言:)