Skip to content

Instantly share code, notes, and snippets.

@Twipped
Created April 19, 2012 19:30
Show Gist options
  • Select an option

  • Save Twipped/2423482 to your computer and use it in GitHub Desktop.

Select an option

Save Twipped/2423482 to your computer and use it in GitHub Desktop.
Example PHP Class
class Foo {
public $memberProperty;
static $staticProperty = array(10, 23, 104);
function memberFunction () {
$localVariable = 1;
}
static function staticFunction () {
self::$staticProperty = 2;
}
function exampleA () {
$this->memberProperty = 3;
}
function exampleB () {
static $staticVariable = 4;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment