MCQs > IT & Programming > PHP 5 > function multiple(int $x, int $y) { return $x * $y; } var_dump(multiple(3, 2)); var_dump(multiple(2.5, 5.5)); ?>

PHP 5 MCQs

Find the output of the following PHP 7.1 code.

function multiple(int $x, int $y)

{ return $x * $y;

}

var_dump(multiple(3, 2));

var_dump(multiple(2.5, 5.5));

?>


Answer

Correct Answer:

int(6)

int(10)


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