Bonjour,

La fonction count() permet de savoir combien il y a d'indices dans ton tableau.


function resume_mots($chaine,$mots) {
$ChaineTab=explode(" ",$chaine);
$nbMots=count($ChaineTab);...