note 93882 modified in language.namespaces.definition by thiago
| From: | thiago@php.net | Date: | Mon, 05 Oct 2009 11:58:04 +0000 |
| Subject: | note 93882 modified in language.namespaces.definition by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161347@lists.php.net to get a copy of this message | ||
"A file containing a namespace must declare the namespace at the top of the file before any
other code"
It might be obvious, but this means that you *can* include comments and white spaces before the
namespace keyword.
<?php
// Lots
// of
// interesting
// comments and white space
namespace Foo;
class Bar {
}
?>
--was--
"A file containing a namespace must declare the namespace at the top of the file before any
other code"
It might be obvious, but this means that you <b>can</b> include comments and white
spaces before the namespace keyword.
<?php
// Lots
// of
// interesting
// comments and white space
namespace Foo;
class Bar {
}
?>
http://php.net/manual/en/language.namespaces.definition.php