Basic PHP
What is the value of $a and $b after the function call?
function doSomething( &$arg ) {
$return = $arg;
$arg += 1;
return $return;
}
$a = 3;
$b = doSomething( $a );

a is 4 and b is 3
Both are 3
Both are 4
a is 3 and b is 4

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

When the parameter is being declared as passed by reference
When the parameter is Boolean
When the function contains only one parameter
When the function is being declared as a member of a class
Never

ANSWER DOWNLOAD EXAMIANS APP