What is the concept of php associative array
This article mainly introduces the relevant knowledge of what the concept of php associative array is, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this article on the concept of php associative array. Let's take a look at it.
1. Concept
An associative array with the specified key, with each ID key associated with a value. Is an array that uses the keys assigned to the array. It is not best to use numeric arrays when storing data about specific named values. By associating arrays, we can use values as keys and assign values to them.
2. Pay attention
The key value is a string and is artificially defined.
3. Creation method
$age=array ("Peter" = > "35", "Ben" = > "37", "Joe" = > "43")
Or:
$age ['Peter'] = "35"; $age [' Ben'] = "37"; $age ['Joe'] = "43"; this is the end of the article on "what is the concept of php associative arrays". Thank you for reading! I believe you all have a certain understanding of "what is the concept of php associative array". If you want to learn more, you are welcome to follow the industry information channel.