Created
January 11, 2013 21:55
-
-
Save jsjohnst/4514274 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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