class Math{ function factorielle($n){ if ($n==0) return 1; else return $n * Math::factorielle($n-1); } }