php string name as variable
<pre>
<code>
$string = "id";

want result to be like 

$id = "new value";
</code>
</pre>

<p>how to code in php</p>

<p>thank you.</p>

<p>Edit..</p>

<p>thank you for fast answer.
how about this.</p>

<pre>
<code>
$column = array("id","name","value");

let say found 3 row from mysql

want result to be like this

$id[0] = "3";
$id[1] = "6";
$id[2] = "10";

$name[0] = "a";
$name[1] = "b";
$name[2] = "c";

$value[0] = "bat";
$value[1] = "rat";
$value[2] = "cat";

</code>
</pre>

<p>thank you.</p>
