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; + + + + + +