Created
January 29, 2014 21:35
-
-
Save dawehner/8697704 to your computer and use it in GitHub Desktop.
This file contains 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
class foo { | |
public $foo = 123; | |
public function test() { | |
test($this); | |
print $this->foo; | |
} | |
} | |
function test(foo $foo) { | |
$new_foo = new foo(); | |
$new_foo->foo = 'hey'; | |
$foo = $new_foo; | |
} | |
$foo = new foo(); | |
$foo->test(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment