What is the value of \$result in the following PHP code?
function timesTwo(\$int)
{
$int = $int * 2;
}
$int = 2;
$result = timesTwo($int);
Reveal answer
Fill a bubble to check yourself
What is the value of \$result in the following PHP code?
function timesTwo(\$int)
{
$int = $int * 2;
}
$int = 2;
$result = timesTwo($int);