Quartz 5

Home

❯

Org-roam

❯

PHP Class Name Literal

PHP Class Name Literal

Nov 10, 20201 min read

Description

Introduced in PHP 8.0, class name literals1 is a new alternative to get_class()

Syntax

$foo = new Foo();
var_dump($foo:class)

Footnotes

Footnotes

  1. https://wiki.php.net/rfc/class_name_literal_on_object ↩


Graph View

  • Description
  • Syntax
  • Footnotes

Backlinks

  • PHP 8.0
  • PHP

Created with Quartz v5.0.0 © 2026

  • GitHub
  • Discord Community