MCQs > IT & Programming > PHP 5 > $example = function($x) { return $x * 3; }; $num = range(2, 6); $new_num = array_map($example, $num); print implode( )?>

PHP 5 MCQs

Find the output of the following PHP 7.1 code.

$example = function($x) {

return $x * 3;

};

$num = range(2, 6);

$new_num = array_map($example, $num);

print implode( )?>

Answer

Correct Answer:

6 9 12 15 18

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