class Stack (View source)

Properties

bool $empty
int $size
TValue $top

Methods

void
pop()

Pop an item from the stack

void
push(TValue $item)

Push an item into the stack

Details

void pop()

Pop an item from the stack

Return Value

void

void push(TValue $item)

Push an item into the stack

Parameters

TValue $item

Variable to be pushed.

Return Value

void