editing values stored in each subarray of an array
<p>I am using the following code which lets me navigate to a particular array line, and subarray line and change its value.</p>

<p>What i need to do however, is change the first column of all rows to BLANK or NULL, or clear them out.</p>

<p>How can i change the code below to accomplish this?</p>

<pre><code>&lt;?php
$row = $_GET['row'];
$nfv = $_GET['value'];
$col = $_GET['col'];

$data = file_get_contents("temp.php");
$csvpre = explode("###", $data);
$i = 0;
$j = 0;

if (isset($csvpre[$row]))
{
  $target_row = $csvpre[$row];
  $info = explode("%%", $target_row);
  if (isset($info[$col]))
  {
     $info[$col] = $nfv;
  }
  $csvpre[$row] = implode("%%", $info);
}


$save = implode("###", $csvpre);
$fh = fopen("temp.php", 'w') or die("can't open file");
fwrite($fh, $save);
fclose($fh);
?&gt;
</code></pre>
