MCQs > IT & Programming > PHP 5 > class Example { public const ONE = private const TWO = 'two'; } echo Example::ONE, PHP_EOL; echo Example::TWO, PHP_EOL; ?>

PHP 5 MCQs

Find the output of the following PHP 7.1 code snippet.

class Example {

public const ONE = private const TWO = 'two';

}

echo Example::ONE, PHP_EOL;

echo Example::TWO, PHP_EOL;

?>

Answer

Correct Answer:

two

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