Re: [PHP-DEV] Confused About Classes

2002-03-25 Thread Markus Fischer
On Mon, Mar 25, 2002 at 09:59:12AM -0500, arti wrote : > I do not understand why I am getting the error "Undefined variable this" in > this snippet of code (note for brevity I cut out a lot of code): > > class standardquestion > { > var $private; > > function standardquestion($xmlfilename) > {

[PHP-DEV] Confused About Classes

2002-03-25 Thread arti
I do not understand why I am getting the error "Undefined variable this" in this snippet of code (note for brevity I cut out a lot of code): private=FALSE; } function startElementHandler($parser, $name, $attribs) { if ($name=="private") $this->private = TRUE; if ($this->private==FALSE)