title: PHP: How to get a fully qualified class name from an alias?
body: <p>In PHP, if I want to get the fully qualified class name of a class that's included with a <code>use</code> statement, how do I do that? For instance,</p>
  
  <pre><code>&lt;?php
  namespace MyNamespace;
  
  use Namespace\To\Class as MyClass;
  
  function getNamespaceOfMyClass() {
      // Return ??
  }
  
  echo getNamespaceOfMyClass();
  </code></pre>
  
  <p>I know one way is to do <code>get_class(new MyClass())</code>, but what if I can't/don't want to make an instance of <code>MyClass</code>? Thanks!</p>