Tuan, sila beritahu saya cara mengendalikan perbandingan tatasusunan ini.
小萝卜头
小萝卜头 2020-06-30 16:33:24
0
0
1025

Soalan: Apa yang saya mahu ialah pid tatasusunan Adakah ia wujud dalam tatasusunan kedua Jika kurang atau lebih, ralat akan dikembalikan. Jika terdapat kedua-duanya, id tatasusunan pertama ialah id anak tatasusunan kedua Jika mereka sama, keluarkan semua anak tatasusunan kedua dan hanya simpan yang sama; Tatasusunan

(

[0] => Tatasusunan

                                                                                                                              => Tatasusunan

( = [Pid] = & gt; 52

[id] = & gt; 54

)

[2] = & gt; array

(

[pid] = & gt; 55

[id] = > 56

)

(

) [pid] => 58

[id] t; 60

)

[4] => ;           ...

(

[0] => ; Tatasusunan

        (

                                                                                                                                                                                         [nama_sifat] =>                                                                                                                                                                                                                                                                                                                

             (

                                           (

                                                                                               ] => 48

                                                                                                                                                                                       [nama_sifat] => Bank Tanah Besar China

                                                                                                                                                                                                                        ...

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ; versi Hong Kong, Macao dan Taiwan                                                                                                                                                                                               [2] => Array

                                                                                         pid] => 47

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 [jenis] => 2

                                                                                                                                                                                                                                                                                                                                .

)

[1] => 0. = & gt; Masa jaminan epal

[kanak-kanak] = & gt; array

(

[0] = & gt;

[id] = & gt; 53

[pid] = & gt 52

[type] => 2

                                                                                                                                                                                                                                                                                                        [nama_sifat]                                                                                                                      ​

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ​=> 2%

                                                                                                                       Array

                                                                                                                                      

            [anak] => Array

(

[0] = & gt; array

(

[id] = & gt; 56

[pid] = & gt; 55

[type] = & gt; 2

[attribute_name] = & gt ;A1863全网通

                            [harga_peratusan] =>            [1] => Tatasusunan

                        (

                                                   ;                       [pid] =>

                            [jenis] =>          [peratusan_harga] => 2%

                        )

                )

      )

    [3] => Tatasusunan

        (

            [id] => 58

            [pid] => 0

      ;                   [nama_sifat] => 机身颜色

            [anak] => Tatasusunan

                (

                    [0] => Tatasusunan

                                                                                                                                              [id] => 59

                            [pid] => 58

                            [jenis] => 2

                            [nama_sifat] => 金色

                            [peratusan_harga] => 2%

                        )

                     [1] => Tatasusunan

                        (

                            [id] => 60

                         58

                            [jenis] =>              [peratusan_harga] =>

                        )

                    [2] => Tatasusunan

                        (

                            [id] => 61

                         58

                            [jenis] =>              [peratusan_harga] =>

                        )

                    [3] => Tatasusunan

                        (

                            [id] => 62

                ;       58

                            [jenis] => 2

                            [nama_sifat] => 红色

                            [peratusan_harga] => 2%

                        )

                 )

        )

Tatasusunan

        (

            [id] => 63

            [pid] => 0

      ;   &               [nama_sifat] => 存储容量

            [anak] =>

                (

                    [0] => Tatasusunan      [id] => 64

                            [pid] => 63

                                              [nama_sifat] => 256G

                            [harga_peratusan] => [1] => Tatasusunan

                        (

                            [id] =>                                                                  pid] => 63

                            [taip ] => 2

                            [nama_sifat] =>                      )

                    [2] => Tatasusunan

                        (

                            [id] => 66

                         63❗          [peratusan_harga] =>

                        )

                )

        )

小萝卜头
小萝卜头

membalas semua(0)
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan