Yes, reserved keywords like public, private, and default can be used in a PHP namespace. However, they will behave as normal keywords within the namespace and cannot be used as namespace identifiers. For example, you cannot create a namespace named "public" or "private".
Asked: 2023-01-17 11:00:00 +0000
Seen: 10 times
Last updated: Nov 08 '22