php8.5
Home/ Manual/ reference / parle/ The Parle\Stack class

The Parle\Stack class

Parle\Stack is a LIFO stack. The elements are inserted and removed only from one end.

Intro

Parle\Stack is a LIFO stack. The elements are inserted and removed only from one end.

Class synopsis

class Parle\Stack { }

Properties

empty

Whether the stack is empty, readonly.

size

Stack size, readonly.

top

Element on the top of the stack.

Stack

Source: reference/parle/parle.stack.xml · from the official PHP manual (php/doc-en)