Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 648 Bytes

0597.md

File metadata and controls

31 lines (25 loc) · 648 Bytes

What is the output of the following function?

function &find_variable(&$one, &$two, &$three) {
    if ($one > 95 && $one < 100) return $one;
    if ($two > 10 && $two < 20) return $two;
    if ($three > 1 && $three < 100) return $three;
}

$one = 90;
$two = 60;
$three = 89;

$var = &find_variable($one, $two, $three);
$var++;
echo "$one - $two - $three";
  • A) 90 - 60 - 90
  • B) 91 - 61 - 91
  • C) 91 - 60 - 89
  • D) 90 - 61 - 89
Answer

Answer: A