Returns the resolved name of the PHP variable value.
This function will resolve objects to their class name, resources to their
resource type name, and scalar values to their common name as would be used in type
declarations.
This function differs from gettype() in that it returns type names
that are more consistent with actual usage, rather than those present for historical reasons.
echo get_debug_type(new \stdClass), PHP_EOL; echo get_debug_type(new class {}), PHP_EOL;
interface A {} interface B {} class C {}
echo get_debug_type(new class implements A {}), PHP_EOL; echo get_debug_type(new class implements A,B {}), PHP_EOL; echo get_debug_type(new class extends C {}), PHP_EOL; echo get_debug_type(new class extends C implements A {}), PHP_EOL;
?>
The above example will output
something similar to: