PHP4 User Manual: data type-arrays

Source: Internet
Author: User
An array of Arrays in PHP is actually an ordered ING. A ING is to map values to keywords. This type is optimized in individual methods. you can use it as a real array or a list (vector), hashtable (ing execution), Dictionary, aggregation, stack, queue and more SyntaxHighlighter. all ();

Arrays
An array in PHP is actually an ordered ING. A ING is to map values to keywords. This type is optimized in individual methods. you can use it as a real array or a list (vector), hashtable (ing execution), Dictionary, aggregation, stack, queue and more to use it. Because you may have another PHP-array as a value, you can easily imitate the tree structure.
This structure is beyond the scope of this manual, but you will find the smallest example of this structure. For more information about this structure, see other documents. Syntax: use the website construction server script \ phpphp user manual fancyfunction.array.html> array () to 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 composed of any non-negative integer or a string. If one is expressed by a standard non-negative integer, it will be interpreted as this (I. e. 8 will be interpreted as 8, 08 will be interpreted as 08 ).


A value can be arbitrary.
Ignore key. If you ignore a key, the new key will be added with the largest integer index. If the integer index does not exist, the key is 0. If you have specified a value to a key, this will be overwritten.
Array ([key =

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.