Skip to content

Instantly share code, notes, and snippets.

@kruxor
Last active October 22, 2018 03:41
Show Gist options
  • Save kruxor/a3c757106a5bf1fe1ca9eda9f7e38807 to your computer and use it in GitHub Desktop.
Save kruxor/a3c757106a5bf1fe1ca9eda9f7e38807 to your computer and use it in GitHub Desktop.
return the class name php class example
class myclass {
function myfunction() {
return get_class($this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment