MCQs > IT & Programming > PHP > What's the output? function callFun( &$arg ) { $return = $arg; $arg += 1; return $return; } $a = 3; $b = callFun( $a ); $c = callFun($a); echo $a; echo ' \n '; echo $b; echo ' \n '; echo $c;

PHP MCQs

What is the output when the following code is executed? function callFun( &$arg ) { $return = $arg; $arg += 1; return $return; } $a = 3; $b = callFun( $a ); $c = callFun($a); echo $a; echo ' \n '; echo $b; echo ' \n '; echo $c; 

Answer

Correct Answer: 5 \n 3 \n 4

Explanation:

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

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it