[PHP] $this objects and vars

2002-01-18 Thread TD - Sales International Holland B.V.
Hey there, got a question about $this. I thought this was a fixed variable to point to the currently used object but I've seen a script wherein it's used within an object like this class a { $var = 0; function b { do something... $this -var++; } } the $this here will

Re: [PHP] $this objects and vars

2002-01-18 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 18-01-02 at 17:00 * TD - Sales International Holland B.V. said Hey there, got a question about $this. I thought this was a fixed variable to point to the currently used object but I've seen a script wherein it's used within an

Re: [PHP] $this objects and vars

2002-01-18 Thread mike cullerton
on 1/18/02 8:58 AM, TD - Sales International Holland B.V. at [EMAIL PROTECTED] wrote: now further in the script you'll get an sql query $this = mysql_fetch_array(indentifier); now as far as I knew you shouldn't be possible to use $this for this purpose, it has nothing to do with objects...