Revisions
-
Stephen George revised this gist
May 17, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ class A { public $foo = null; public function getFooClass() { return get_class(); // null param means "What's *my* class?" } } -
bobthecow created this gist
May 17, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <?php class A { public $foo = null; public function getFooClass() { return get_class($this->foo); } } $a = new A(); var_dump($a->getFooClass());