title: PHP get static methods
body: <p>i want to call a class method by a var (like this):</p>
  
  <pre><code>$var = "read";
  $params = array(...); //some parameter
  if(/* MyClass has the static method $var */)
  {
    echo MyClass::$var($params);
  }
  elseif (/* MyClass hat a non-static method $var */)
  {
    $cl = new MyClass($params);
    echo $cl-&gt;$var();
  }
  else throw new Exception();
  </code></pre>
  
  <p>i read in the php-manual how to get the function-members of a class (get_class_methods). but i get always every member without information if its static or not.</p>
  
  <p>how can i determine  a method´s context?</p>
  
  <p>thank you for your help</p>