πŸ“Š PHP
Q. What is the result of the following PHP code?
Code:
<?php 
    class Person
    {
        public function __construct(){
            echo 'The class "' . __CLASS__ . '" was initiated!'; 
        }
    }
    
    $p = new Person; 
?>
  • (A) The class __CLASS__ was initiated!
  • (B) The class “Person” was initiated!
  • (C) The class “p” was initiated!
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) The class “Person” was initiated!

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
201
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Team MCQ Buddy
Publisher
πŸ“ˆ
81%
Success Rate