/// infinite loop?? $x=1; while($x=9){ echo $x; $x++; }
i dont understand the reason behind, why the above code causes infinite loop in my opinio
You mean
$x == 9
But in your example it won't do anything, because $x != 9. You probably mean
while($x < 9)