title: Call static function by method name?
body: <p>I have a couple of methods whose returns are being cached, and the cache key is the name of the method itself. </p>
  
  <p>For instance, if this is my class</p>
  
  <pre><code>class tester {
    static function test() {
      $data = build_data();
      cache(__METHOD__, $data);
    }
  }
  </code></pre>
  
  <p>The cache key value is <code>tester::test</code>. </p>
  
  <p>I am implementing functionality to warm the cache. If I have all the cache keys, I could just call them one by one. </p>
  
  <pre><code>foreach ( $keys as $key ) {
    $key();
  }
  </code></pre>
  
  <p>But apparently, I can't call a string like <code>'tester::test'</code> in this manner
  <code>Fatal error: Call to undefined function tester::test() ...</code></p>
  
  <p>Do I have to do string parsing, to pull apart the class name and method, and then call them like <code>$class::$method()</code>? Or is there a simpler way to do it?</p>