Using error_reporting with a string?
<p>I am making a modification for a PHP software I use and I am wanting to allow users to enter  a custom error reporting level, such as <code>E_ALL &amp; ~E_NOTICE</code>.</p>

<p>The issue is that the value they specifiy is saved as a string - and therefore I cannot reference it in the <code>error_reporting()</code> function.</p>

<p>Is there anyway I could convert the string into the value needed by the <code>error_reporting()</code> function? I have already tried the <code>constant()</code> function, however it says that the constant cannot be found.</p>

<p>Liam</p>
