Jump to content
Larry Ullman's Book Forums

Difference Between Define() And Define()


Recommended Posts

I'm working on Chapter 18 registration application.

 

I noticed in the book that in the config.inc.php file the constants are defined as

define('LIVE', FALSE);

 

In mysqli_connect.php the constants are defined as

DEFINE ('DB_USER', 'username');

 

What is the difference between the two? Why is define in all-caps in the second example?

Link to comment
Share on other sites

Sorry for the confusion. There's no difference at all. Function names are case-insensitive in PHP. The all caps example is not how I would normally do it (I would normally capitalize the constant itself, though). 

Link to comment
Share on other sites

 Share

×
×
  • Create New...