Very simple loop question

Why doesnt this code output the number 5??

<html>
<head>
<title>Loops: Continue</title>
</head>
<body>
<?php

for ($count=0; $count <= 10; $count++) {
if ($count==5 ) {
continue;
}

echo $count . " , ";
}
?>

</body>

</html>

View full post on Tycoon Talk

, , ,

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get Adobe Flash playerPlugin by wpburn.com wordpress themes


RSS Site FeedRSS Site Feed

© 1992-2011 DC2NET™, Inc. All Rights Reserved