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
-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
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...
3 matches
Mail list logo