Heim  >  Artikel  >  Backend-Entwicklung  >  数组

数组

WBOY
WBOYOriginal
2016-06-23 13:44:47898Durchsuche

Array
(
    [0] => Array
        (
            [sequence] => 2
            [id] => 2045104
            [listname] => mytest1
            [contactcount] => 0
            [createdDate] => Jan 15, 2014
            [modifiedDate] => Jan 15, 2014
            [permissionPassList] => 0
            [is_importing] => 0
            [list_audited] => 1
            [list_description] => mytest1
            [is_master_unsubscribe] => 0
            [encToken] => 4gcr%2FApPM0I%2BU2bszJyvrslsL%2Bsrf4FiNuSDcOAE4gA%3D
            [allow_delete] => 1
            [list_import_v3] => 0
        )

    [1] => Array
        (
            [sequence] => 3
            [id] => 2045102
            [listname] => mytest
            [contactcount] => 0
            [createdDate] => Jan 15, 2014
            [modifiedDate] => Jan 15, 2014
            [permissionPassList] => 0
            [is_importing] => 0
            [list_audited] => 1
            [list_description] => mytest
            [is_master_unsubscribe] => 0
            [encToken] => 4gcr%2FApPM0I%2BU2bszJyvrslsL%2Bsrf4Fil0xEgSwWD4U%3D
            [allow_delete] => 1
            [list_import_v3] => 0
        )
)

=======================================================================
Array
(
    [0] => Array
        (
            [sequence] => 1
            [id] => 2045111
            [listname] => mytest2
            [contactcount] => 0
            [createdDate] => Jan 15, 2014
            [modifiedDate] => Jan 15, 2014
            [permissionPassList] => 0
            [is_importing] => 0
            [list_audited] => 1
            [list_description] => mytest2
            [is_master_unsubscribe] => 0
            [encToken] => 4gcr%2FApPM0I%2BU2bszJyvruLQt%2BBAKOzdyP3JtH6e3%2BQ%3D
            [allow_delete] => 1
            [list_import_v3] => 0
        )

    [1] => Array
        (
            [sequence] => 2
            [id] => 2045104
            [listname] => mytest1
            [contactcount] => 0
            [createdDate] => Jan 15, 2014
            [modifiedDate] => Jan 15, 2014
            [permissionPassList] => 0
            [is_importing] => 0
            [list_audited] => 1
            [list_description] => mytest1
            [is_master_unsubscribe] => 0
            [encToken] => 4gcr%2FApPM0I%2BU2bszJyvrslsL%2Bsrf4FiNuSDcOAE4gA%3D
            [allow_delete] => 1
            [list_import_v3] => 0
        )

    [2] => Array
        (
            [sequence] => 3
            [id] => 2045102
            [listname] => mytest
            [contactcount] => 0
            [createdDate] => Jan 15, 2014
            [modifiedDate] => Jan 15, 2014
            [permissionPassList] => 0
            [is_importing] => 0
            [list_audited] => 1
            [list_description] => mytest
            [is_master_unsubscribe] => 0
            [encToken] => 4gcr%2FApPM0I%2BU2bszJyvrslsL%2Bsrf4Fil0xEgSwWD4U%3D
            [allow_delete] => 1
            [list_import_v3] => 0
        )
)


我第一次只有两条数据打印出来的数组是横线上的数组,我第二次有三条数据是横线下的数组。第一次取的是下标为0的数据,第二次取下标为1的数据,第三次取下标为2的数据,以此类推,我怎么取


回复讨论(解决方案)

你用什么来表示次数呢?

这个问题以前碰到过

收藏了,先看看什么情况

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn