MCQs > IT & Programming > PHP 5 > function double($test) { return $test*2; } $bar = $ar = 5; $s = $ar++; $exp = $dp = ++$bar; $foo = double($dp++); $gh = double(++$exp); $res = $gh += 10; print_r($res) ?>

PHP 5 MCQs

Find the output of the following PHP 7.1 program.

function double($test)

{

return $test*2;

}

$bar = $ar = 5;

$s = $ar++;

$exp = $dp = ++$bar;

$foo = double($dp++);

$gh = double(++$exp);

$res = $gh += 10;

print_r($res)

?>


Answer

Correct Answer:

24

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