
<HTML>
<HEAD><TITLE>Programmation Web avec PHP, Code V-2: Mise en oeuvre d'un test (IF), rsultat</TITLE></HEAD>
<BODY>
<H1>Rsultat de l'exemple de test (IF)</H1>
<PRE><BIG>
	$ai = intval($a);
	$bi = intval($b);
	$ci = intval($c);
	if ($ci < $bi) {
		$tmp = $ci;
		$ci = $bi;
		$bi = $tmp;
	}
	echo "<font color=\"008800\"><b><i>$ai est-il compris entre $bi et $ci ?<br></i>";
	echo "</font><font color=\"ff0000\">";
	if ($ai < $bi) {
		echo "Non, $ai est infrieur  $bi " ;
	} elseif ($ai > $ci) {
		echo "Non, $ai est suprieur  $ci " ;
	} else {
		echo "Oui, $ai est compris entre $bi et $ci " ;
	}
</BIG></PRE>
<BR><HR><P><A href="menu.php3">Retourner au menu principal</A>&nbsp;&nbsp;<A href="formifres.php3.txt">Voir le source</A></P>
</BODY>
</HTML>
