Jump to content

[SOLVED] can you undefine or redefine a constand?


M.O.S. Studios

Recommended Posts

well i guess i figured that out by the name, but i was hopping.

 

i import my defines first, then depending what the application was used for i wanted to pull in a bunch of "redefines"; but oh well....

 

any way to suggest that to the php gods?

 

Any way to redeclare Pi, e, Planck's constant? I don't think so.

The purpose of constant is to retain their value throughout the execution of the program. This is how they work in all programming languages (that support constants).

 

You should probably either use variables, or defer definition of constants until you know the values they should be assigned.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.