title: Dynamic static method call in PHP?
body: <p>Please could someone experienced in PHP help out with the following. Somewhere in my code, I have a call to a public static method inside a non-instantiated class:</p>
  
  <pre><code>$result = myClassName::myFunctionName();
  </code></pre>
  
  <p>However, I would like to have many such classes and determine the correct class name on the fly according to the user's language. In other words, I have:</p>
  
  <pre><code>$language = 'EN';
  </code></pre>
  
  <p>... and I need to do something like:</p>
  
  <pre><code>$result = myClassName_EN::myFunctionName();
  </code></pre>
  
  <p>I know I could pass the language as a parameter to the function and deal with it inside just one common class but for various reasons, I would prefer a different solution.</p>
  
  <p>Does this make any sense, anyone? Thanks.</p>