14, "claude" => 13, "david" => 18, "maxime" => 1, ); $moyenne = 0; foreach ($tableau as $prenom => $note) { echo "$prenom: $note
"; $moyenne += $note; } $moyenne = $moyenne / count($tableau); echo "

Moyenne : $moyenne"; // Modification des notes foreach ($tableau as $prenom => $note) { if ($prenom == "jean") { continue; } $tableau[$prenom] = $note - 2; } echo "


Nouvelles notes

"; ?>