52 return count($this->_stack);
60 public function push($value) {
61 $this->_stack[$value] = $value;
69 public function pop() {
70 return array_pop($this->_stack);
79 return isset($this->_stack[$value]);
86 $this->_stack = array();
An exception for terminatinating execution or to throw for unit testing.
pop()
Pop the last entry from the stack.
count()
Return the number of entries on the stack.
showStack()
Return an array of all entries on the stack.
push($value)
Push a new entry onto the stack.
onStack($value)
Test to see if a specified entry exists on the stack.