PHP Constants with variables
<p>I know this is probably a newbie question, but is it possible to do this?</p>

<pre><code>unserialize(LOG_ACTIONS_.''.strtoupper($language));
</code></pre>

<p>I have list of constants with _LANGUAGE which I want to use the variable $language with. </p>

<p>Example:</p>

<pre><code>unserialize(LOG_ACTIONS_ENGLISH);
</code></pre>

<p>Here's the error I get:</p>

<pre><code>Fatal error: Call to undefined function LOG_ACTIONS_strtoupper()
</code></pre>
