MCQs > IT & Programming > PHP 5 > for($a=0,$b=20; $a<50; $a++) { while($b--) { if($b==8) goto end; } } echo 'a = $a'; end: echo ?>

PHP 5 MCQs

What will be the output of the following PHP 7.1 code?

for($a=0,$b=20; $a<50; $a++) {

while($b--) {

if($b==8) goto end;

}

}

echo "a = $a";

end:

echo ?>

Answer

Correct Answer:

b and 8

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it