public function offsetGet($symbol) { $sym = self::_symbol($symbol); if (array_key_exists($sym, $this->values)) { return $this->values[$sym]; } else { if ($this->superscope) { return $this->superscope[$sym]; } } }