Bonjour

Tout simplement je me demande si il est possible d'utiliser 2 tableaux arrays combiner dans une boucle comme ceci

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$note= array ("francais Ecrit" => $francaisE,"francais Oral" => $francais0,"mathématiques" => $maths,"GSI" => $gsi,"Philosophie" => $philo,"Éco/Droit" => $eco_droit,"Mmanagement" => $management,"Eps" => $eps,"Anglais" => $anglais,"Espagnole" => $espagnole,"Histoire/Geo" => $histoire_geo);
 
$coef =array ( 2, 2, 4, 12, 2, 6, 4, 2, 2, 2, 2 );
 
?>
<br />
<table border="1">
 
	<tr>
	<th>Matiéres</th>
	<th>Notes</th>
	<th>Coefficients</th>
	</tr>
<?
foreach ($note as $clef => $ele) && ($coef as $co)
{
	echo "<tr><td>" .$clef. "</td><td>" .$ele. "</td><td> " .$co. "</td></tr>"; 
}
Merci à vous