foreach( $notZeroValue as $cardSetPosition => $timesChosen){
echo $groupValue;
$notZeroValue[$cardSetPosition + ($groupValue*100)] = $notZeroValue[$cardSetPosition];
unset ($notZeroValue[$cardSetPosition]);
}
Output is 0000 (correct because the $notZeroValue has four elements and for each one $groupValue = 0)
I know there must be a newbie error because changing *100 to +100 produces key values 101, 102, 103, 104.
print_r($notZeroValue); //output = array()
$groupValuedefined? What does the array look like? What is the result you get and what is the result you expect?