get_class()
function get_class(object $object = null): string
Returns the name of the class of an object.
Parameters:
$object(object), defaultnull, optional
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/symbols/get_class.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how get_class is implemented in the compiler, see the internals page.