PHP Programming quiz, level Advanced, question 1
| Question: | Which of these best describes the Object Oriented facilities of PHP? |
| Answer 1: | PHP has good object oriented facilities in release 4, although it's not as complete an implementation of object orientation as you would find in Java This was the CORRECT answer |
| Answer 2: | As of release 4, PHP is a full Object Oriented language, with encapsulation enforced by restricting keywords such as "private". |
| Answer 3: | PHP was designed to be used for smaller web page based applications, and as such doesn't need (and doesn't have) any object oriented capabilities |
| Answer 4: | The Zend Engine provided with PHP release 4 can accept an Object Oriented plug-in which can be downloaded from PEAR. With this plugin, PHP becomes a full OO language but otherwise its facilities in this area are limited to a maximum of 200 objects on any one run, each of which can't have more that 1024 properties. |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|