below is a section of my code - i would like to be able to put the variable renaming bit in to a function so that i don't have to keep cutting and pasting it. the function would take (in this case) $sculp and $paint_draw as its arguments. I spent a very long day failing to get it to work -any help appreciated.
case artbycas:
$table_name = array('artbycas_paint_draw', 'artbycas_sculp');
create_output($table_name);
randomize (1,2);
$z = 1;
foreach ($numbers as $currNum){
$paint_draw[$z++] = $output[$currNum];
}
randomize (3,4);
$z = 1;
foreach ($numbers as $currNum){
$sculp[$z++] = $output[$currNum];
}
break;