1.

What will be the output of the following PHP codeclass Person{function getName() { return "Bob"; }function getAge() { return 44; }function __toString() {$desc = $this->getName();$desc .= " (age ".$this->getAge().")";return $desc;}}$person = new Person();print $person;

A. bject Not Found
B. HP Catchable fatal error
C. OB (age 44)
D. OB
Answer» D. OB


Discussion

No Comment Found

Related MCQs