Skip to content

Glossary: PHP Basics

associative array

Also written: associative arrays

An array that stores each value under a key you choose, written `key => value`, so you can look up `$prices['mug']` by name instead of position.

Where the book teaches it

Related terms

arraykey