note 125726 added to language.namespaces.rationale
| From: | Anonymous@php.net | Date: | Wed, 27 Jan 2021 04:19:58 +0000 |
| Subject: | note 125726 added to language.namespaces.rationale | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216238@lists.php.net to get a copy of this message | ||
php reserve keywords are not allowed as a namespace name.But namespace name "php" can be
allowed.
Here are some example:
namespace php;//works
namespace class;//Parse error: syntax error, unexpected 'class'
namespace const;//Parse error: syntax error, unexpected 'const'
namespace constant;//works
namespace interface;//Parse error: syntax error, unexpected 'interface'
namespace function;//Parse error: syntax error, unexpected 'function'
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.166 (proxied: 103.19.255.111)
----
Manual Page -- http://php.net/manual/en/language.namespaces.rationale.php
Edit -- https://master.php.net/note/edit/125726
Del: integrated -- https://master.php.net/note/delete/125726/integrated
Del: useless -- https://master.php.net/note/delete/125726/useless
Del: bad code -- https://master.php.net/note/delete/125726/bad+code
Del: spam -- https://master.php.net/note/delete/125726/spam
Del: non-english -- https://master.php.net/note/delete/125726/non-english
Del: in docs -- https://master.php.net/note/delete/125726/in+docs
Del: other reasons-- https://master.php.net/note/delete/125726
Reject -- https://master.php.net/note/reject/125726
Search -- https://master.php.net/manage/user-notes.php