Original post

Using constants can often be more efficient than using variables where possible because any references to the constant will be replaced at compile time, where as a variable would have memory allocated to it and can be changed. Using a defined constant is very similar to using a variable and can be declared as a block outside of a function (usually at the top of a file) – a little like your import.