Error function routine
<p>Pls what is the best approach considering (performance, security etc.) to implement an error function. Something in the line of ..</p>

<pre><code>function trap_errors($error_code, $parametrs...)
{
$error_code = array =&gt; ('1001 = Error description1', '1002 = Error description2',..etc.
)


}
</code></pre>

<p>I dont know if the above makes sense. Any pointers?..</p>
