title: Disable specific notice in PHP
body: <p>I want to be able to define some custom constants using <code>define</code> locally which are later redeclared in the code, so the program throws <code>Notice: Constant MY_CONSTANT already defined in...</code>.</p>
  <p>This is for development purposes, so I want to hide that notice without hiding other notices.</p>
  <p>If I use <code>error_reporting(E_ALL &amp; ~E_NOTICE);</code> all notices would be disabled in development, which I don't want.</p>
  <p>How can I disable only the constant already defined notices?</p>
  <p>If it's not possible, is there any way to overwrite a constant that's declared somewhere else in the code? Currently I do it by defining my desired value before the existing one is declared, so it would use the value I set (but this shows the notices).</p>