Jump to content

[SOLVED] what does "$this->generateCode($characters);" do?? help!!


physaux

Recommended Posts

$this->somethinghere

 

is a shorthand method for calling a property or method within a class.  $this means "this class".  Example:

 

class blah {
  var $x;

  function foobar() {
    // you are telling php to assign 123 to $x in this class, which is blah.
    $this->x = 123; 
  }
}

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.