如何获得数组结果?

时间:2019-07-15 20:02:21

标签: php

我的虚拟商店中的客户可以有多个注册地址,我需要在管理面板中显示2个信息,这些信息在所有地址中都相同。看一下数组

[739] => Array
    (
        [address_id] => 739
        [customer_id] => 567
        [firstname] => VINICIUS
        [lastname] => MARQU
        [zone_id] => 464
        [zone] => São Paulo
        [zone_code] => SP
        [country_id] => 30
        [country] => Brasil
        [iso_code_2] => BR
        [iso_code_3] => BRA
        [address_format] => {company} 
        [custom_field] => Array
            (
                [5] => 06011988
                [4] => 23058320876
                [9] => 996691304
                [7] => 442
                [8] => casa 
            )

    )

第二个结果

 [740] => Array
    (
        [address_id] => 740
        [customer_id] => 567
        [firstname] => VINICI
        [lastname] => MARQU [zone] => São Paulo
        [zone_code] => SP
        [country_id] => 30
        [country] => Brasil
        [iso_code_2] => BR
        [iso_code_3] => BRA                                 
        [custom_field] => Array
            (
                [5] => 06011988
                [4] => 23058320876
                [9] => 34644683
                [7] => 444
                [8] => casa 
            )

    )

在我的管理面板中,我两次看到此信息,但是确实如此,

 [custom_field] => Array
        (
            [5] => 06011988
            [4] => 23058320876

如果它们是个人文档,则在同一位客户的每个地址中,它们始终是相同的。我怎么只显示这两个结果一次?

0 个答案:

没有答案