Q. What will be the output of the following PHP code ?

Code:
<?php
class newObject { }
define('newObject::CONSTANT', 'Example');
echo newObject::CONSTANT; 
?>
  • (A) Error
  • (B) Example
  • (C) CONSTANT
  • (D) Nothing
πŸ’¬ Discuss
βœ… Correct Answer: (A) Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
191
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ravinder Singh
Publisher
πŸ“ˆ
81%
Success Rate