|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-18 08:37 UTC] waldschrott@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 12 22:00:01 2026 UTC |
this doesnt work: <?php for ($i = 0; $i < 5; $i++) { print "<br>value of i = ".$i."\n"; switch ($i) { default: print "<br>PHP is not buggy\n"; } } ?> while this works: <?php for ($i = 0; $i < 5; $i++) { print "<br>value of i = ".$i."\n"; switch ($i) { case 5: print "<br>I Will never go here\n"; break; default: print "<br>PHP is not buggy\n"; } } ?> this syntax works in C and PHP3, not in PHP4.0.1pl2