What will be the output of the following PHP code?
interface Exp { public function x();}
class First implements Exp {
public function x() {}
}
class Second {}
function x(Exp $e){
echo get_class($e)."\n";
}
x(new First);
x(new Second);
?>
Correct Answer:
First Fatal error
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions