What is the difference and/or benefit of using define. for example in db file i can define password or any variable that i am going to use throughout website like this:
define('DB_PASSWORD', 'mypassword');
Instead of above code, I can also use it in db file like this:
$DB_PASSWORD="mypassword";
Both will serve same purpose... db file will be included in every page of website. So is there any benefit of using define rather then just declaring a variable.