Jump to content

$this->


PHPNS

Recommended Posts

Hi, Can someone please explain to me the, logic behind  using $this->, in the following code, or at least point me to appropriate online explanations:

 

class counter {

  var $db;

  var $sid;

  var $dbtable;

  var $online;

  function counter () {

    global $db, $tblcounter;

    $this->db = $db;

    $this->table = $tblcounter;

    $this->sid = session_id();

    $this->do_count();

  }

Link to comment
https://forums.phpfreaks.com/topic/56955-this/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.