Glossary

Linked List

A linked list is a linear data structure where each element (node) holds a value and a pointer to the next node. Unlike an array, elements are not stored contiguously in memory.

Types

Comparison with arrays

In PHP

PHP arrays are hash tables — not linked lists. For a true linked list: SplDoublyLinkedList or a custom implementation. Rarely needed in practice.