Question: what is the difference between const and define in php?
Answer: The basic difference between these two is that const defines constants at compile time, whereas define() defines them at run time. ... const accepts a static scalar(number, string or other constants like true, false, null, __FILE__), whereas define() takes any expression.