Here is the PHP:
\n"; // using a for loop to get the attribute names from the array keys $rollnum = 1; // counter var to get the roll number for output foreach( $character as $key => $attribute ) { //using table columns and rows for formating, we print our results // first we'll print the dice rolls echo " \n"; echo " Roll"." ".$rollnum." "." \n"; echo "".$roll[$rollnum]." \n"; // now we'll print the character traits echo " ".$key." \n"; echo " ".$attribute." \n"; echo " \n"; $rollnum++; // incrementing our counter } // close our table echo " \n"; // close our if statement } ?>