Created
December 10, 2013 18:16
-
-
Save pantaovay/7895305 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 $bar; | |
} | |
class bar { | |
public function hello() { | |
return "hello world"; | |
} | |
} | |
$myclass = new foo(); | |
$myclass->bar = new bar(); | |
print $myclass->bar->hello(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment