1.

What will be the output of the following PHP code ?
<?php
class newObject { }
define('newObject::CONSTANT', 'Example');
echo newObject::CONSTANT;
?>

A. Error
B. Example
C. CONSTANT
D. Nothing
E. None of these
Answer» B. Example


Discussion

No Comment Found

Related MCQs