Public feed #529409

Miscellany

public php v1 · immutable
Raw Edit
·published 2007-06-01 22:22 UTC
rendered paste body
function rechercheJourSemaine($strCorrompu){$jourDeLaSemaine = array("lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche");$arret = false;$i = 0;while(($i<= sizeof($jourDeLaSemaine)) && ($arret == false)){	if(preg_match('/'.$strCorrompu.'/',$jourDeLaSemaine[$i], $resultat))		$arret = true;	else		$i++;}//return($jourDeLaSemaine[$i]);echo $jourDeLaSemaine[$i];}rechercheJourSemaine("ardi");die;