dragon_girl Posted August 27, 2013 Share Posted August 27, 2013 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 More sharing options...
Larry Posted August 27, 2013 Share Posted August 27, 2013 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 More sharing options...
dragon_girl Posted August 27, 2013 Author Share Posted August 27, 2013 Got it. Thanks, Larry. Link to comment Share on other sites More sharing options...
Recommended Posts