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
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;
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."
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;
}
4 matches
Mail list logo