Why this code forms infinite loop ...
Posted: Mon Apr 28, 2008 9:52 am
Please tell me why this code forms infinite loop
<?php
$temp = 1;
while($temp<=10)
{
echo "The no is : " . $temp . "<br>";
$temp = $temp++;
}
?>
<?php
$temp = 1;
while($temp<=10)
{
echo "The no is : " . $temp . "<br>";
$temp = $temp++;
}
?>