From c2f8c648c8dcf4ffe7c27749a2643fb1faf6259e Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Thu, 20 Jun 2013 22:08:17 +0000 Subject: [PATCH] Promote ::class documentation to its own subsection for direct linking. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330569 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/basic.xml | 65 +++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index b63b1f15ba..0e707d75aa 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -102,37 +102,6 @@ $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; - - @@ -309,6 +278,40 @@ a default value + + ::class + + + Since PHP 5.5, the class keyword is also used for class + name resolution. You can get a string containing the fully qualified name + of the ClassName class by using + ClassName::class. This is particularly useful with + namespaced classes. + + + + Class name resolution + + +]]> + + &example.outputs; + + + + + +