title: Cannot use a scalar value as an array
body: <p>I am trying this code:         </p>
  
  <pre><code>$rescntryvals[] = $rescntry;
  $rescntry = "";
  $resclkvalscntry[] = $rclick;
  $rclick = "";
  $resclkaddsnm[] = $addsnmame;
  $addsnmame = "";
  </code></pre>
  
  <p>But I get this:</p>
  
  <blockquote>
    <p>warning: Cannot use a scalar value as an array</p>
  </blockquote>
  
  <p>Why? And what is the solution?</p>