title: Call PHP Class method using variable instead of actual function name
body: <p>I am having a problem with accessing Class methods using variable instead of function name. Like in below example:</p>
  
  <pre><code>class Test
  {
      public static function route()
      {
          $functionName = "myFunction";
          echo self::$functionName;
  
      }
  
      public static function myFunction()
      {
          return "Hello";
      }
  }
  </code></pre>
  
  <p>I am getting error message:</p>
  
  <pre><code>Fatal error: Access to undeclared static property: Test::$functionName
  </code></pre>
  
  <p>Is there a way of accessing class methods using variables containing function name? 
  Please help :) </p>