Jump to content

CONSTANTS?


random1

Recommended Posts

Hey All,

 

I've got one file: home.php which includes another file "config.php". config.php declares a constant TEST_CONSTANT with the value "test only".

 

in home.php I echo out TEST_CONSTANT and don't get "test only" but it prints out "TEST_CONSTANT".

 

What's going on? I thought that Constants where global.

Link to comment
https://forums.phpfreaks.com/topic/97349-constants/
Share on other sites

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.