Skip to content
Make room for learningYour learning studio
Read a named key4 min

Loading your session…

A small idea, worth understanding

Read a named key

Use associative-array keys correctly.

PHP arrays can map named keys to values. Read a value using brackets and the key.

A key is a label; it does not have to be a numeric position.

Two activities. No typing needed. You can always retry, or read an explanation and continue.

Read the full lesson first