ID: 15037 Updated by: mfischer Old Summary: something wrong with the operator '--' Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Math related PHP Version: 4.0.6 New Comment:
Interesting approach, but why do you quote 2.1 ? It says that $num is the _string_ "2.1" and not the number 2.1. Just nuke the quoes for $num = 2.1; and you're done. Previous Comments: ------------------------------------------------------------------------ [2002-01-14 23:44:34] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15037&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]