|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-10-13 12:25 UTC] andi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 31 17:00:02 2025 UTC |
<html> <body> PHP 4.x : When I set $count to "", $count++ doesn't work properly.<br> PHP 3.x : script works OK.<br> <br> Don't tell me that's OK ;) ... I'm perl programmer and I have some habits...<br> <br> Simple example of $count++ bug.<br> (it should print 7 lines in PHP 3.x, but in PHP 4.x it loops :( )<br> <br> <?php $row_count = "7"; $count = ""; $line = "0"; while ($count < $row_count) { print "Line " . $line++ . ", count : " . $count++ . "<br>\n"; } ?> </body> </html>