title: Interpret a variable from array in PHP
body: <p>I'm writing a multilanguage API and for this I need PHP to parse variables that are stored in an array.</p>
  
  <p>In the database:</p>
  
  <pre><code>| Language | Type | Category | tId | Message                                |
  =============================================================================
  | English  | API  | Error    | 2   | Daily limit ($apiCounter) reached      |
  | Dutch    | API  | Error    | 2   | Dagelijks limiet ($apiCounter) bereikt |
  </code></pre>
  
  <p>I've written an function that puts this information, based on a query, into an multidimensional array.</p>
  
  <pre><code>Array
  (
  [0] =&gt; Array
      (
          [Language] =&gt; English
          [Type] =&gt; API
          [Category] =&gt; Error
          [tId] =&gt; 2
          [Message] =&gt; Daily limit ($apiCounter) reached
      )
  )
  </code></pre>
  
  <p>However when printing it the $apiCounter variable is taken literally and not interpreted as a variable. </p>
  
  <pre><code>&lt;?php 
     echo textValue('English', 'API', 'Error','2')[0]["Message"];
  ?&gt;
  </code></pre>
  
  <p>The outcome from the this is: </p>
  
  <pre><code>"Daily limit ($apiCounter) reached"
  </code></pre>
  
  <p>How to tell PHP it should interpreter the variable and show something like:</p>
  
  <pre><code>"Daily limit (2000) reached"
  </code></pre>