Category : defined

I’ve been using variables to store many things that should probably be stored as constants since they should never change. However, I once read in the documentation that array values are allowed since PHP 7.0.0. That made me think that are objects like class-instances or functions or… definable as constants in PHP? define("MY_CONSTANT", "myString"); // ..

Read more