define() vs const
<p>Pretty straightforward question: In PHP, when do you use </p>

<pre><code>define('FOO', 1);
</code></pre>

<p>and when do you use</p>

<pre><code>const FOO = 1;
</code></pre>

<p>What are the main differences between those two?</p>
