note 106387 added to language.namespaces.definitionmultiple
| From: | kothnok at gmail dot com | Date: | Thu, 03 Nov 2011 18:59:58 +0000 |
| Subject: | note 106387 added to language.namespaces.definitionmultiple | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184283@lists.php.net to get a copy of this message | ||
"use" statements are required to be placed after the "namespace my\space" but
before the "{".
e.g.
namespace foo\bar;
use my\space\MyClass;
{
// place code here
} // end of namespace foo\bar
namespace another\bar;
use my\space\MyClass;
use my\space\AnotherClass;
{
// place code here
} // end of namespace another\bar
----
Server IP: 69.147.83.197
Probable Submitter: 68.38.208.215
----
Manual Page -- http://www.php.net/manual/en/language.namespaces.definitionmultiple.php
Edit -- https://master.php.net/note/edit/106387
Del: integrated -- https://master.php.net/note/delete/106387/integrated
Del: useless -- https://master.php.net/note/delete/106387/useless
Del: bad code -- https://master.php.net/note/delete/106387/bad+code
Del: spam -- https://master.php.net/note/delete/106387/spam
Del: non-english -- https://master.php.net/note/delete/106387/non-english
Del: in docs -- https://master.php.net/note/delete/106387/in+docs
Del: other reasons-- https://master.php.net/note/delete/106387
Reject -- https://master.php.net/note/reject/106387
Search -- https://master.php.net/manage/user-notes.php