PHP4 User manual: Data type-arrays_php Tutorial

Source: Internet
Author: User
Arrays
An array in PHP is actually a sequential mapping. A map is a map value to the keyword. This type is optimized on a separate method, and you can use it as a real array or as a list (vector), Hashtable (a map of execution), dictionaries, aggregates, stacks, queues and more. Because you might have another php-array as a value, you can also imitate the tree structure very easily.
The interpretation of this structure is beyond the scope of this manual, but one will find the smallest paradigm for this structure. For more information on this structure, please consult other literature. Syntax with Web site construction Server script Class \phpphp user manual Fancyfunction.array.html>array () specify an array
An array can be constructed by array (). It consists of a pair of key = value and a series of numbers separated by commas.
A key is any non-negative integer or a string composition. If one is expressed by a standard nonnegative integer, it will be interpreted as such (i.e. 8 will be interpreted as 8, 08 will be interpreted as 08).

A value can be arbitrary.
Ignore the key. If you omit a key, the new key will be added with the largest integer index. If the integer index does not exist, the key will be 0. If you have specified a value for a key, then this will be covered.
Array ([key =

http://www.bkjia.com/PHPjc/532353.html www.bkjia.com true http://www.bkjia.com/PHPjc/532353.html techarticle Arrays An array in PHP is actually a sequential mapping. A map is a map value to the keyword. This type is optimized on a separate approach and you can act as a real ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.