title: PHP create array where key and value is same
body: <p>I am using the <code>range()</code> function to create an array. However, I want the <code>keys</code> to be the same as the <code>value</code>. This is ok when i do <code>range(0, 10)</code> as the index starts from <code>0</code>, however if i do <code>range(1, 11)</code>, the index will still start from <code>0</code>, so it ends up <code>0=&gt;1</code> when i want it to be <code>1=&gt;1</code></p>
  
  <p>How can I use <code>range()</code> to create an array where the <code>key</code> is the same as the <code>value</code>?</p>