nerdexam
Zend

200-530 · Question #248

You want to run the following PHP 4 code with PHP 5. In the following example, which access modifier in PHP 5 is equivalent to "var"? class Test { var $tester; }

The correct answer is C. public. See the full explanation below for the reasoning.

Question

You want to run the following PHP 4 code with PHP 5. In the following example, which access modifier in PHP 5 is equivalent to "var"? class Test { var $tester; }

Options

  • Aprotected
  • Binvisible
  • Cpublic
  • Dprivate
  • Eoutofscope

How the community answered

(15 responses)
  • A
    7% (1)
  • B
    13% (2)
  • C
    80% (12)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice