title: Is this correct in PHP
body: <p>I was wondering if below is correct, I have tested it is working, I just want an opinion.</p>
  
  <p>file a.php:</p>
  
  <pre><code>namespace MyNamespace;
  
  class MyClass {
  
      public function ShowMessage($s) {
          echo $s;
      }
  
  }
  </code></pre>
  
  <p>file b.php</p>
  
  <pre><code>require_once 'a.php';
  
  use MyNamespace\MyClass as MyAlias;
  
  $class = new MyAlias;
  $class-&gt;ShowMessage('Hello World!');
  
  /* I have same results if I use this */
  $class2 = new MyNamespace\MyClass();
  $class2-&gt;ShowMessage('Hello World!');
  </code></pre>
  
  <p>Thank you.</p>