Re: [PHP] _construct() problem

2005-06-09 Thread Stéphane Bruno
Thanks, Richard It now works. It was not obvious in the book I was using. The author should have put a side note stating it is two underscores instead of one. Stéphane On Thu, 2005-06-09 at 08:42, Richard Davey wrote: > Hello Stéphane, > > Wednesday, June 8, 2005, 10:23:22 PM, you wrote: > > S

[PHP] _construct() problem

2005-06-09 Thread Stéphane Bruno
Hello, I designed a "player" class with the following properties and constructor: class player { private $properties = array('firstname' => NULL, 'lastname' => NULL); function _construct($first, $last) { $this->properties['firstname'] = $first; $this->properties['lastname'] = $last;

Re: [PHP] _construct() problem

2005-06-09 Thread Richard Davey
Hello Stéphane, Wednesday, June 8, 2005, 10:23:22 PM, you wrote: SB> function _construct($first, $last) { SB> What did I do wrong? It's __construct() Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them."

[PHP] _construct() problem

2005-06-09 Thread Stéphane Bruno
Hello, I designed a player class with the following properties and constructor: class player { private $properties = array('firstname' => NULL, 'lastname' => NULL); function _construct($first, $last) { $this->properties['firstname'] = $first; $this->properties['lastname'] = $last; }