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...\n"; ?>
β
Correct Answer: (C)
After loop executed...
<?php $k = 1; for ($k++; $k == 1; $k = 2) print "In for loop execute..."; print "After loop executed...\n"; ?>
You must be Logged in to update hint/solution