Skip to content

Instantly share code, notes, and snippets.

@jsjohnst
Created January 11, 2013 21:55
Show Gist options
  • Save jsjohnst/4514274 to your computer and use it in GitHub Desktop.
Save jsjohnst/4514274 to your computer and use it in GitHub Desktop.
<?php
Class A
{
public $foo = 3;
public function do_something() {
B::hello();
print_r($this);
}
}
Class B
{
public function hello() {
$this->bar = 33;
}
}
$a = new A();
$a->do_something();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment