需要幫助。計數循環
我需要的是當循環它將計數達到零後有多少循環。
$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
[你有什麼嘗試?](http://www.whathaveyoutried.com/)請參閱[FAQ](http://stackoverflow.com/faq)。 –
我需要一輛新車。你可以幫我嗎? –
你從現在開始嘗試過什麼是我的口號。文字優美。 – Khez