Question #11

Author: admin
tags: PHP  
const X = 5;

function func() {
  define('Y', 10);
}

func();

echo X + Y; // ??
What will be output?
5
10
15
Fatal error: Uncaught Error: Undefined constant "Y" in...
A constant can be defined inside a function via define() function.
Such a constant becomes global.
Rate the difficulty of the question:
easyhard