mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
Namespaces: note that enums are affected (#4739)
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
This commit is contained in:
@@ -91,7 +91,8 @@ echo constant($d); // see "Namespaces and dynamic language features" section
|
||||
<?phpdoc print-version-for="namespaces"?>
|
||||
<para>
|
||||
Although any valid PHP code can be contained within a namespace, only the following
|
||||
types of code are affected by namespaces: classes (including abstracts and traits), interfaces, functions and constants.
|
||||
types of code are affected by namespaces: classes (including abstract classes, traits and enums), interfaces,
|
||||
functions and constants.
|
||||
</para>
|
||||
<para>
|
||||
Namespaces are declared using the <literal>namespace</literal>
|
||||
|
||||
Reference in New Issue
Block a user