Question: what is difference between constant 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. ... consts are always case sensitive, whereas define() allows you to define case insensitive constants by passing true as the third argument.