The value of the expression is checked each time at the beginning of the loop, so even if this value changes during the execution of the nested statement(s), ...
php.net