From 0bae036804fcc8fb3d5b061a27b8be41bd6dbd16 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 14 May 2013 20:44:08 +0000 Subject: [PATCH] ClassName::class git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330216 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/basic.xml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index df3df8d2d7..b63b1f15ba 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -102,6 +102,37 @@ $this is defined (A) $this is not defined. $this is defined (B) $this is not defined. +]]> + + + + + + Since PHP 5.5, the class keyword is also used for class + name resolution. You can get a string with fully qualified name of the + ClassName class with ClassName::class. + This is particularly useful with + namespaces. + + + + Class name resolution + + +]]> + + &example.outputs; + +