length = array_push( $this->options, $string ); return $this->length; } public function getNext() { $value = $this->options[$this->pointer]; $this->pointer++; if( $this->pointer >= $this->length ) { $this->pointer = 0; } return $value; } public function reset_pointer() { $this->pointer = 0; } } ?>