Please tell me why this code forms infinite loop
<?php
$temp = 1;
while($temp<=10)
{
echo "The no is : " . $temp . "<br>";
$temp = $temp++;
}
?>
Search found 1 match
- Mon Apr 28, 2008 9:52 am
- Forum: PHP - Code
- Topic: Why this code forms infinite loop ...
- Replies: 2
- Views: 1068