Php define() Constants Inside Namespace Clarification
define()
will define constants exactly as specified. So, if you want to define a constant in a namespace, you will need to specify the namespace in your call to define()
, even if you’re calling define()
from within a namespace. The…