class Stack (View source)

Methods

int
count()

Return the number of entries on the stack.

push(mixed $type, mixed $value, mixed $reference = null)

Push a new entry onto the stack.

mixed
pop()

Pop the last entry from the stack.

mixed
last(int $n = 1)

Return an entry from the stack without removing it.

clear()

Clear the stack.

Details

int count()

Return the number of entries on the stack.

Return Value

int

push(mixed $type, mixed $value, mixed $reference = null)

Push a new entry onto the stack.

Parameters

mixed $type
mixed $value
mixed $reference

mixed pop()

Pop the last entry from the stack.

Return Value

mixed

mixed last(int $n = 1)

Return an entry from the stack without removing it.

Parameters

int $n number indicating how far back in the stack we want to look

Return Value

mixed

clear()

Clear the stack.