As said in the php reference
Namespaces are declared using the namespace keyword. A file containing a namespace must declare the namespace at the top of the file before any other code - with one exception: the declare keyword.
But further we've the following code snippet in the reference:
<?php
namespace MyProject;
const CONNECT_OK = 1;
class Connection { /* ... */ }
function connect() { /* ... */ }
namespace AnotherProject; //This namespace declaration doesn't located at the top of the file. It's unclear.
const CONNECT_OK = 1;
class Connection { /* ... */ }
function connect() { /* ... */ }
?>