Last In, First Out (LIFO)

Last In, First Out is the principle of management of a stack. The most recently added element is the first one to be removed. This is exactly how a stack behaves: it is also the way a backpack behaves.

The other management is FIFO: first in, first out.

Documentation

See also Introduction to Stacks & Queues in PHP.

Related : First In, First Out (FIFO), array_unshift(), Datastack, Pop, SplStack