rear-$this->front; } function insert($element){ $this->buf[++$this->rear]=$element; } function get(){ $tmp=$this->buf[++$this->front]; unset($this->buf[$this->front]); return $tmp; } function show(){ return join("/",$this->buf); } } ?>