note 106387 modified in language.namespaces.definitionmultiple by danbrown
| From: | danbrown@php.net | Date: | Fri, 04 Nov 2011 13:55:39 +0000 |
| Subject: | note 106387 modified in language.namespaces.definitionmultiple by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184292@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.
<?php
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
?>
--was--
"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
http://php.net/manual/en/language.namespaces.definitionmultiple.php