|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-15 00:44 UTC] mfischer@php.net
[2002-01-15 01:20 UTC] yohgaki@php.net
[2002-01-15 01:28 UTC] yohgaki@php.net
[2002-01-15 05:29 UTC] hholzgra@php.net
[2002-06-29 03:39 UTC] andi@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 20:00:01 2025 UTC |
I run below on win2000: <? $j = 0; $num = '2.1'; for ($i=$num;$i>1;$i--) { echo "i== $i<br>"; if ($j++ == 10) break; } ?> but I get the output: i== 2.1 i== 2.1 i== 2.1 i== 2.1 i== 2.1 i== 2.1 i== 2.1 i== 2.1 i== 2.1 i== 2.1 i== 2.1 I think something may be wrong with the operator '--'.Maybe I am right. Good lunk.