Forum Moderators: coopster
for ($i=0; $i < $n; $i++){
$temp = $arr
stuff happens to the temp array
and the values in array change
}else{
keep it all the same
}//end if
}//end for
I want to be able to break free of the loop before "else" having changed the values of the array but then start the loop again with the new array (values)=> ie change $arr to the temp values and then begin the loop again. I have tried all sorts of while/for loops with break/exit commands but nothing seems to work without messing up the array values!
Please can someone help! :)