MCQs>IT & Programming>PHP>Given this code: function doSomething( &$arg ) { $return = $arg; $arg += 1; return $return; } $a = 3; $b = doSomething( $a ); what is the value of $a and $b after the function call?
PHP MCQs
Given this code: function doSomething( &$arg ) { $return = $arg; $arg += 1; return $return; } $a = 3; $b = doSomething( $a ); what is the value of $a and $b after the function call?
Answer
Correct Answer: $a is 4 and $b is 3
Explanation:
Note: This Question is unanswered, help us to find answer for this one