Newbie: why do I get this error?

From: Date: Mon, 26 Feb 2001 10:17:15 +0000
Subject: Newbie: why do I get this error?
Groups: php.general 
Request: Send a blank email to php-general+get-41659@lists.php.net to get a copy of this message
Hello everybody, I am a newbie, so please help me out with my rather basic question. Please take a look at the following code snippet: class HTMLTable extends HTMLElement { var $attributes; function HTMLTable() { $attributes[] = array("border", "0"); $attributes[] = array("cellpadding", "0"); // and some other things } function emit() { // I get an error on this line $arrLength = count($this->attributes[1]); } } On the line indicated above, I get the error: "Warning: Undefined property: attributes in html_base_classes.inc on line <line-number>" Can anybody give me a clue as to why this is happening? -- Regards, Harshdeep Singh Jawanda.

« previous php.general (#41659) next »