Search found 1 match

by sjohnranjan
Mon Apr 28, 2008 9:52 am
Forum: PHP - Code
Topic: Why this code forms infinite loop ...
Replies: 2
Views: 1068

Why this code forms infinite loop ...

Please tell me why this code forms infinite loop

<?php

$temp = 1;
while($temp<=10)
{
echo "The no is : " . $temp . "<br>";
$temp = $temp++;
}


?>