Which of the given statements is correct about the following PHP 7.1 code snippet?
const C = 2;
class example {
const D = C * 2;
const E = C + self::D;
const F = }
echo example::D, PHP_EOL;
echo example::F;
?>
Correct Answer:
The code will compile successfully and will print the following output:
4
The result is 6
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions