I understand that wanting to update or remove a constant is the exact opposite if what it is meant for, but here is my problem.
I want to be able to format a value in same same fashion that a constant does. i.e.: echo foo;
Where it can just be plain text, instead of echoing a variable like $foo.
It may seem like a silly thing to want to do, but I am hoping to create use out of it. However, if this is not possible, I guess that is that.
PS. I ‘would’ just define it as a constant, however I want it to be able to update (like re-defining it during a foreach).
Sort of. The first one must be case-insensitive:
But, DON’T DO THIS! The whole point of a constant is that it’s constant. Although you seem to sort of recognize this, what is wrong with that extra
$sign, really, versus a much more clear code style?