First In, First Out (FIFO)

First In, First Out is the principle of management of a queue. The first added element is the first one to be removed. This is exactly how a queue behaves: it is also the way a line at the cashier behaves.

The other management is LIFO: last in, first out.

Documentation

See also Introduction to Stacks & Queues in PHP.

Related : Last In, First Out (LIFO), array_pop(), array_push(), array_unshift(), Pop, array_shift()