\n";
foreach ($gia as $printK => $printV) {
$color = bin2hex((int)$printV);
echo "\t\t
\n";
echo "\t\t\t FOO!!! $printK = $printV \n";
echo "\t\t | \n";
}//end of foreach
echo"\t\n";
return null;
*/
$file = fopen("run.txt","a");
$header = " GENERATION $gen Mutation this Gen $mGen Total Mutations $mTot
\n";
fwrite ($file, $header);
//$formatWeb = //web
foreach ($gia as $printK => $printV) {
$color = dechex(bindec($printV));
// $foo = "Generation = $gen Color = $color key = $printK value = $printV \n" ; //file
$foo = "Generation = $gen Color = $color key = $printK value = $printV
\n" ; //file
fwrite ($file, $foo);
}//end of foreach
$foo = "$gen , $mGen , $mTot \n";
fwrite ($file, $foo); // used to create a csv file
fclose($file);
}//end of function
//$fish = array( "a" => '1010', "b" => '0110', "c" => '1001');
//printer($fish);
?>