Getting Variable value in php
<p>i have variables <code>$CV1</code>, <code>$CV2</code>, <code>$CV3</code> ... How to get the values of these variable inside while loop in PHP? Below is my code</p>

<pre><code>$CV1=$fetch-&gt;Custom_field1;
$CV2=$fetch-&gt;Custom_field2;
$CV3=$fetch-&gt;Custom_field3;
$CV4=$fetch-&gt;Custom_field4;
$query=mysql_query("select * from customfields where CustomField like '%Invoice%' and CustomLabel != ''");
while($get=mysql_fetch_object($query))
        {
            $i++;
            $Label=$get-&gt;CustomLabel;
            $CFV='$CV'.$i;
            echo "&lt;tr&gt;&lt;td&gt;$Label&lt;/td&gt;&lt;td&gt;&lt;input type='text' name='custom_field$i' value='$CFV'&gt;&lt;/td&gt;&lt;/tr&gt;";
        }
</code></pre>

<p>but instead of getting the value of <code>$CV1</code>, <code>$CV2</code>. I'm getting the variable name itself as output. <code>$CV1</code>, <code>$CV2</code>, etc.</p>
