Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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".