Q. What will be the output of the following PHP code ?
Code:
<?php
$k = 10;
while ($k < 30)
{
$k++;
}
print $k;
?>
β
Correct Answer: (A)
30
<?php
$k = 10;
while ($k < 30)
{
$k++;
}
print $k;
?>
You must be Logged in to update hint/solution