exit from a loop
Posted: Tue Mar 23, 2004 12:34 am
for($i=1;$i<=$p_rowcount;$i++)
{
eval("\$model=\$p_model$i;");
if(model != "---select---")
exit(); // here i want to exit form the 'for' loop and like to use the current value of model;
}
anyone to help me pls...........
{
eval("\$model=\$p_model$i;");
if(model != "---select---")
exit(); // here i want to exit form the 'for' loop and like to use the current value of model;
}
anyone to help me pls...........