You are here: Re: beginner oop: class not alway working « All PHP « IT news, forums, messages
Re: beginner oop: class not alway working

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация