Skip to content

Instantly share code, notes, and snippets.

@sfgeorge
Forked from bobthecow/yay.php
Created May 17, 2011 18:57
Show Gist options
  • Save sfgeorge/977118 to your computer and use it in GitHub Desktop.
Save sfgeorge/977118 to your computer and use it in GitHub Desktop.
<?php
class A {
public $foo = null;
public function getFooClass() {
return get_class(); // null param means "What's *my* class?"
}
}
$a = new A();
var_dump($a->getFooClass());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment