MCQs>IT & Programming>PHP 5>Which lines needed to be commented to print class name ? Class GOT { function tirian() { echo get_class($this); } } 8. $sparta = new GOT(); 9. $sparta -> tirian(); 10.GOT::tirian();
PHP 5 MCQs
Which lines needed to be commented to print class name ? Class GOT { function tirian() { echo get_class($this); } } 8. $sparta = new GOT(); 9. $sparta -> tirian(); 10.GOT::tirian();
Answer
Correct Answer: All the three lines 8,9, and 10 should be left as it is
Explanation:
Note: This Question is unanswered, help us to find answer for this one