title: Dynamically call a static variable (array)
body: <p>Here's my question for today. I'm building (for fun) a simple templating engine. The basic idea is that I have a tag like this {blog:content} and I break it in a method and a action. The problem is when I want to call a static variable dynamically, I get the following error .</p>
  
  <pre><code>Parse error: parse error, expecting `','' or `';''
  </code></pre>
  
  <p>And the code:</p>
  
  <pre><code> $class = 'Blog';
   $action = 'content';
   echo $class::$template[$action];
  </code></pre>
  
  <p>$template is a public static variable(array) inside my class, and is the one I want to retreive.</p>