Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 430 Bytes

0457.md

File metadata and controls

27 lines (23 loc) · 430 Bytes

What is the output of the following code:

function a($a) {
   echo $a . "&";
}
function b($a) {
   echo "-" . $a;
}
$a = "!";
$b = &$a;
echo a(b($b));
  • A) -!&
  • B) -!!&
  • C) !&-&
  • D) -&!
Answer

Answer: A