I'm new to php.
I'm having a weird scenario where I cannot declare the following inside a function:
const CONST_Example = 1/192;
I'v tried also:
const CONST_Example = 1;
Do not work either. I want to be able to save constant float number which is a result of arithmetic expression such as 1/190, etc.
defineif you want to set a named constant at runtime equal to the result of some operation: php.net/manual/en/function.define.php