Difference between define and simple variable in PHP
<p>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:</p>

<pre><code>define('DB_PASSWORD', 'mypassword');
</code></pre>

<p>Instead of above code, I can also use it in db file like this:</p>

<pre><code>$DB_PASSWORD="mypassword";
</code></pre>

<p>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. </p>
