I\'m building an ORM library with reuse and simplicity in mind; everything goes fine except that I got stuck by a stupid inheritance limitation. Please consider the code bel
I know its old post but want to share the solution I have found.
Tested with PHP 7+ Use the function get_class()link
get_class()
The above example will output:
string(3) "foo" string(3) "bar"