ExamVeda
Login
Home
Operators and Expressions in php
?

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

Answer & Solution
Correct Answer: Option B
Class constants cannot be defined outside class.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.