请需要帮助。
我需要的是在循环时它会计算达到零后的循环数。
$variable=50;//this is not fixed
$loop=0;
//------------------//
$variable-10;
//the $variable becomes 40
//$loop becomes 1
//repeat the process
$variable-10;
//the $variable becomes 30
//$loop becomes 2
//until the variable reaches zero then
//$loop becomes 5