PHP's array is an extraordinarily versatile, ordered map — it serves as both an indexed list and an associative array (key-value map), and it's PHP's most-used data structure. A single array type covers what other languages split into lists, maps, and more.
Indexed and associative arrays
= [, , ];
[];
[] = ;
= [ => , => ];
[];
[] = ;
= [ => , => ];
