nerdexam
Zend

200-530 · Question #427

What will be the output of the following code? <?php function a(&$a = 19) { $a .= 1; } $b = 6; a($b); echo $b++; ?>

The correct answer is B. 61. See the full explanation below for the reasoning.

Question

What will be the output of the following code? <?php function a(&$a = 19) { $a .= 1; } $b = 6; a($b); echo $b++; ?>

Options

  • AThe script will throw an error message
  • B61
  • C7
  • D6

How the community answered

(39 responses)
  • A
    10% (4)
  • B
    72% (28)
  • C
    3% (1)
  • D
    15% (6)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice