PHP Class Name Literal
Description
Introduced in PHP 8.0, class name
literals1 is a new alternative to get_class()
Syntax
$foo = new Foo();
var_dump($foo:class)
Introduced in PHP 8.0, class name
literals1 is a new alternative to get_class()
$foo = new Foo();
var_dump($foo:class)