PHP: String to actual value
<p>I am creating a function to parse text from a templating system, and add the corresponding values.</p>

<p>For example, the user might input <code>hi [[first_name]]</code> and the <code>[[first_name]]</code> part will be replaced with the actual first name.</p>

<p>Somehow, I parsed that and ended up with a text that looks like this:</p>

<pre><code>hi $info['first_name']
</code></pre>

<p>The above is just as text though, what can I do to actually make $info['first_name'] be the value (I already have that array in there, but I am not sure how to convert string to PHP variable)</p>

<p>Thanks! </p>
