1<?php
2
3/**
4 * Github Issue:    https://github.com/emacs-php/php-mode/issues/66
5 *
6 * Namespace examples from user comment on
7 * http://www.php.net/manual/en/language.namespaces.definitionmultiple.php
8 *
9 * From the comment: "use" statements are required to be placed after the
10 * "namespace my\space" but before the "{".
11 */
12
13namespace foo\bar;
14use my\space\MyClass;
15{
16  $str = "hi";
17  class TheClass {
18    public function __construct() {
19        $object = new StdClass();
20        $object->call()
21               ->something();
22    }
23  }
24 // place code here
25
26} // end of namespace foo\bar
27
28namespace another\bar;
29use my\space\MyClass;
30use my\space\AnotherClass;
31{
32  $more = "other";
33
34} // end of namespace another\bar
35?>