Multiple choice php

What is the value of \$result in the following PHP code?

function timesTwo(\$int)
{
  $int = $int * 2;
}

$int = 2;

$result = timesTwo($int);

  1. 0

  2. 2

  3. 4

  4. NULL

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In the provided code, the function 'timesTwo' modifies a local copy of the variable '$int'. It does not use a return statement to send a value back to the caller. Consequently, when '$result = timesTwo($int)' is executed, the variable '$result' is assigned NULL.