|
Posted by Vince Morgan on 03/29/07 00:31
"Osewoudt" <oswwoudt@ufo.org> wrote in message
news:460abf73$0$30727$ba620dc5@text.nova.planet.nl...
> hello,
>
> i am trying to learn oop, so i made a class that generates passwords.
>
> is there something wrong with the class?
>
> thanks,
>
>
> ------------------------ code to show password -----------
> // make an object;
> $test = new WachtwoordGenerator();
> // choose the amount of elements from each array;
> $test -> kLetter = 8;
> $test -> hLetter = 3;
> $test -> cijfer = 2;
> $test -> leesteken = 4;
> // true means that the password contains only unique elements;
> // false means that duplicates are allowed;
> $test -> uniek = true;
> // make the password;
> $test -> maakWachtwoord();
> // show the password
> echo $test -> output();
>
>
>
> $totaal = array($this -> a , $this -> b , $this -> c , $this ->
> );
The above line should throw and error. If that is the actual code, rather
than a copy paste error, it will certainly cause you some grief.
I think you meant the line below.
$totaal = array($this -> a , $this -> b , $this -> c , $this ->d );
HTH
Vince Morgan
Navigation:
[Reply to this message]
|