class CyclicReferenceStack (View source)

Methods

int
count()

Return the number of entries on the stack.

push(mixed $value)

Push a new entry onto the stack.

mixed
pop()

Pop the last entry from the stack.

bool
onStack(mixed $value)

Test to see if a specified entry exists on the stack.

clear()

Clear the stack.

mixed[]
showStack()

Return an array of all entries on the stack.

Details

int count()

Return the number of entries on the stack.

Return Value

int

push(mixed $value)

Push a new entry onto the stack.

Parameters

mixed $value

mixed pop()

Pop the last entry from the stack.

Return Value

mixed

bool onStack(mixed $value)

Test to see if a specified entry exists on the stack.

Parameters

mixed $value The value to test

Return Value

bool

clear()

Clear the stack.

mixed[] showStack()

Return an array of all entries on the stack.

Return Value

mixed[]