What is the difference between define and const in PHP?
< 1 min readIn PHP, define and const are both used to define constants, which are values that cannot be changed once they are set. There are some differences between the two: define is a function, while const is a language construct. This means that define can be called like a function (e.g., define(‘FOO’, ‘bar’)), while const is…
