Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kozo/2851566 to your computer and use it in GitHub Desktop.
Save kozo/2851566 to your computer and use it in GitHub Desktop.
staticなプロパティ一覧のデータをprint_aする
function showStaticMember($className) {
$class = new ReflectionClass($className);
$propertyList = $class->getStaticProperties();
print_a($propertyList);
return ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment