A
Q. What will be the output of the following PHP code ?
Code:
<?php
$k = 1;
for ($k++; $k == 1; $k = 2)
print "In for loop execute...";
print "After loop executed...
";
?>
$k = 1;
for ($k++; $k == 1; $k = 2)
print "In for loop execute...";
print "After loop executed...
";
?>
- Correct Answer - Option(C)
- Views: 11
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.