MCQs > IT & Programming > PHP 5 > What is the correct output? interface exp1 { const c = } echo exp1 ::c; class exp2 implements exp1 { const c = 'Second Example'; } echo exp2::c; ?>

PHP 5 MCQs

What is the correct output of the following PHP 7.1 code snippet?

interface exp1

{

const c = }

echo exp1 ::c;

class exp2 implements exp1

{

const c = 'Second Example';

}

echo exp2::c;

?>

Answer

Correct Answer:

First Example

Fatal error 


Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it