title: Can not do the array equation in php
body: <p>I am trying to create an array equation where the array value will be equated to the existing sequence, but I can not display it in array..how do I fix it?</p>
  
  <pre><code>$ht = array('day' =&gt; 1,'day' =&gt;2,'day' =&gt;3,'day' =&gt;4);                          
  for ($x = 1; $x &lt;= 10; $x++) {
      if($x == $ht['day']){
          echo 'x';
      }else{
          echo $x;
      }
  }
  </code></pre>
  
  <p>Which I expect <code>xxxx5678910</code> but I result <code>123x45678910</code></p>