A
Q. What will be the output of the following PHP code?
Code:
<?php
$counter = 1;
while ($counter++ <= 5)
{
echo $counter, ",";
$counter++;
}
?>
$counter = 1;
while ($counter++ <= 5)
{
echo $counter, ",";
$counter++;
}
?>
- Correct Answer - Option(C)
- Views: 25
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.