_size = sizeof($this->_items); } function pop() { $ret = FALSE; if ($this->_size > 0) $ret = TRUE; array_pop($this->_items); $this->_update(); return $ret; } function push($value) { $this->_items[] = $value; $this->_update(); } function pushRef(&$value) { $this->_items[] = &$value; $this->_update(); } function &top() { $ret = NULL; if ($this->_size > 0) $ret = &$this->_items[$this->_size - 1]; return $ret; } } ?>