/// 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
$x=9 is an assignment, and is always true. Perhaps you meant $x==9, or some other relational operator.
$x=9
$x==9