"; echo ""; foreach($t as $val) { echo "$val"; } echo ""; } function moy($t) { $s=0; foreach($t as $val) $s+=$val; return $s/sizeof($t); } function creetab($nb) { for($i=0;$i<$nb;$i++) { $t[$i]=mt_rand(1,100); } return $t; } function boucle($n) { echo "

dans fonction : $n

"; for($i=0;$i<$n;$i++) { echo "

ligne n° $i

\n"; } if($n<=2) return "facile"; else return "oh que c'est long"; } ?>

Test P. Trau

nous sommes sur osr-etudiant.unistra.fr/~trau/index.php . le fichier est accessible en ssh sur osr-etudiant (par vi ou nano) dans /web/trau/public_html .