MCQs > IT & Programming > PHP 5 > Which code statement should replace ??? to obtain 12345 as output? function recursive($var){ echo $var; if($var < 5){ ??? } } $a = 1; recursive($a); ?>

PHP 5 MCQs

In the following PHP 7.1 program, which of the given code statements should replace ??? to obtain 12345 as output?

function recursive($var){

echo $var;

if($var < 5){

???

}

}

$a = 1;

recursive($a);

?>

Answer

Correct Answer:

return recursive($var + 1);

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

More PHP 5 MCQ Questions

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it