question about php eval() function
<p>i defined a couple of variables: $day_0, $day_1...$day_8 and need to build a string with those days variable embedded in the string, here is what i did;</p>

<pre><code>for($i = 0; $i &lt;=8; $i++) {
       $d = 'day_'.$i;
       $day = eval($($d));echo $day;
       $cmd_line .= 'INPUT'.$i.'='.$quote.$day.$quote.$space;
}
</code></pre>

<p>but php always complained </p>

<pre><code>syntax error, unexpected '(', expecting T_VARIABLE or '$' 
</code></pre>

<p>what's wrong with it? Thanks.</p>
