MCQs > IT & Programming > PHP > Output using PHP 5.6.0 or higher? const ONE = 1; class foo { const TWO = ONE * 2; const THREE = ONE + self::TWO; const SENTENCE = 'The value of THREE is '.self::THREE; } echo foo::SENTENCE . '\n';

PHP MCQs

What is the output of the following code run using PHP 5.6.0 or higher? const ONE = 1; class foo { const TWO = ONE * 2; const THREE = ONE + self::TWO; const SENTENCE = 'The value of THREE is '.self::THREE; } echo foo::SENTENCE . "\n";

Answer

Correct Answer: The value of THREE is 3

Explanation:

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

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it