private function createCode() { $_len = strlen($this->chars) - 1; for ($_i = 0; $_i < $this->len; $_i++) { $this->code .= $this->chars[mt_rand(0, $_len)]; } }