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