<?php
/*
   Leçon 7 PHP
   Avec IMI21.COM
   2008.07.07
   Exemple 2
   Les fonctions
*/

// fonction de calcule
function totale($x,$y)
{
  
$result=($x 100) + ($y 10);
  return (
$result);
}

$a=3$b=2;
echo 
"<p>Le totale est = ".totale($a,$b)."</p>";


$a=6$b=1;
echo 
"<p>Le totale est = ".totale($a,$b)."</p>";

?>