use of undefined constant is not solved by isset
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2941169/what-does-the-php-error-message-notice-use-of-undefined-constant-mean">What does the PHP error message “Notice: Use of undefined constant” mean?</a>  </p>
</blockquote>



<p>I got "use of undefined constant" message when load this function:</p>

<pre><code>function awp_get_options($i){
  $i[selects][] =  'special_effects';
  $i[radios][] =  array('js_library','sack');                   
  $i[selects][] = 'effects';
  $i[checkboxes][] = 'no_load_library';

 return $i;
}
</code></pre>

<p>I changed it to:</p>

<pre><code>function awp_get_options($i){
 if(isset( $i[selects] )){
    $i[selects][] = 'special_effects';
    $i[selects][] = 'effects';
 }
 if(isset( $i[radios] ))
   $i[radios][] =  array('js_library','sack');

 if(isset( $i[radios] )) 
   $i[checkboxes][] = 'no_load_library';

 return $i;
}
</code></pre>

<p>It still says use of undefined constant. How to correct this code?</p>
