RDV+DIAL chat illimit� dans ta r�g!
no save
Assistance
Achat
News

Forum | webmastering
Exit while en php
Fallentree, le sam. 04 juil. 2009 à 01:44:35
Bonjour,
Exit while existe t il en php ?

<?
function je_cherche {
While (J'ai_un_suivant){
if test_condition_rempli then {
je_fais_ce_qui_doit_etre_fait;
exit while;
}
}
?>

OU doit on rediger dans le cas ou je n ai pas de exit while en php ?

<?
function je_cherche {
do {
j'en_prend_un;
} While (!test_condition & J'ai_un_suivant);
if (test_condition) then je_fais_ce_qui_doit_etre_fait;
}
?>

Merci...
Version Web
Réalisé par RedShift
no save