Table of Contents
回复讨论(解决方案)

数组

Jun 23, 2016 pm 01:44 PM
array

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的数据,以此类推,我怎么取


回复讨论(解决方案)

你用什么来表示次数呢?

这个问题以前碰到过

收藏了,先看看什么情况

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to remove duplicate elements from PHP array using foreach loop? How to remove duplicate elements from PHP array using foreach loop? Apr 27, 2024 am 11:33 AM

How to remove duplicate elements from PHP array using foreach loop?

PHP array key value flipping: Comparative performance analysis of different methods PHP array key value flipping: Comparative performance analysis of different methods May 03, 2024 pm 09:03 PM

PHP array key value flipping: Comparative performance analysis of different methods

PHP array multi-dimensional sorting practice: from simple to complex scenarios PHP array multi-dimensional sorting practice: from simple to complex scenarios Apr 29, 2024 pm 09:12 PM

PHP array multi-dimensional sorting practice: from simple to complex scenarios

The Art of PHP Array Deep Copy: Using Different Methods to Achieve a Perfect Copy The Art of PHP Array Deep Copy: Using Different Methods to Achieve a Perfect Copy May 01, 2024 pm 12:30 PM

The Art of PHP Array Deep Copy: Using Different Methods to Achieve a Perfect Copy

Application of PHP array grouping function in data sorting Application of PHP array grouping function in data sorting May 04, 2024 pm 01:03 PM

Application of PHP array grouping function in data sorting

Best Practices for Deep Copying PHP Arrays: Discover Efficient Methods Best Practices for Deep Copying PHP Arrays: Discover Efficient Methods Apr 30, 2024 pm 03:42 PM

Best Practices for Deep Copying PHP Arrays: Discover Efficient Methods

The role of PHP array grouping function in finding duplicate elements The role of PHP array grouping function in finding duplicate elements May 05, 2024 am 09:21 AM

The role of PHP array grouping function in finding duplicate elements

PHP array merging and deduplication algorithm: parallel solution PHP array merging and deduplication algorithm: parallel solution Apr 18, 2024 pm 02:30 PM

PHP array merging and deduplication algorithm: parallel solution

See all articles