private function createWord()
    {

        $this->word ='';
        for($x=0;$x<rand(5,7);$x++){

            $this->word .=$this->allowed_characters[ rand(0, strlen($this->allowed_characters)-1)];
        }
        return $this->word;
    }
private function createWord()
    {

        $this->word ='';
        for($x=0;$x<rand(5,7);$x++){

            $this->word .=$this->allowed_characters[ rand(0, strlen($this->allowed_characters)-1)];
        }
        return $this->word;
    }
private function createWord ( ) { $ this -> word = '' ; for ( $ x = 0 ; $ x < rand ( 5 , 7 ) ; $ x ++ ) { $ this -> word .= $ this -> allowed_characters [ rand ( 0 , strlen ( $ this -> allowed_characters ) - 1 ) ] ; } return $ this -> word ; }
Creates the word from the allowed characters

@return string
Creates the word from the allowed characters