title: accessing static methods using a variable class name (PHP)
body: <p>I am trying to access a static method, but using a variable as the class name. Is this possible? I seem to be having issues with it. I want to be able to do something like this:</p>
  
  <pre><code>class foo {
      public static function bar() {
          echo 'test';
      }
  }
  
  $variable_class_name = 'foo';
  $variable_class_name::bar();
  </code></pre>
  
  <p>And I want to be able to do similar using static variables as well.</p>