Q. What will be the output of the following PHP code ?
Code:<?php
class newObject { }
define('newObject::CONSTANT', 'Example');
echo newObject::CONSTANT;
?>
β
Correct Answer: (A)
Error
<?php
class newObject { }
define('newObject::CONSTANT', 'Example');
echo newObject::CONSTANT;
?>
You must be Logged in to update hint/solution