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)- A7% (1)
- B13% (2)
- C80% (12)
Community Discussion
No community discussion yet for this question.