What to do range() php function return associate array instead nummeric
<p>I want to create a select box like this : </p>

<pre><code>&lt;select class="form-control" name="quantity"&gt;
   &lt;option value="1"&gt;1&lt;/option&gt;
   &lt;option value="2"&gt;2&lt;/option&gt;
   &lt;option value="3"&gt;3&lt;/option&gt;
   &lt;option value="4"&gt;4&lt;/option&gt;
   &lt;option value="5"&gt;5&lt;/option&gt;
   &lt;option value="6"&gt;6&lt;/option&gt;
   &lt;option value="7"&gt;7&lt;/option&gt;
   &lt;option value="8"&gt;8&lt;/option&gt;
   &lt;option value="9"&gt;9&lt;/option&gt;
   &lt;option value="10"&gt;10&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>For that I write this laravel blade code :</p>

<pre><code>{!! Form::select('quantity', range(1,10), null , ['class'=&gt;'form-control']) !!}
</code></pre>

<p>But this return a select with zero-based options like this :</p>

<pre><code>&lt;select class="form-control" name="quantity"&gt;
   &lt;option value="0"&gt;1&lt;/option&gt;
   &lt;option value="1"&gt;2&lt;/option&gt;
   &lt;option value="2"&gt;3&lt;/option&gt;
   &lt;option value="3"&gt;4&lt;/option&gt;
   &lt;option value="4"&gt;5&lt;/option&gt;
   &lt;option value="5"&gt;6&lt;/option&gt;
   &lt;option value="6"&gt;7&lt;/option&gt;
   &lt;option value="7"&gt;8&lt;/option&gt;
   &lt;option value="8"&gt;9&lt;/option&gt;
   &lt;option value="9"&gt;10&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>This is because <strong>range()</strong> php function always return a numeric Array .is there a way to force it to return associative Array?</p>

<p><strong>Update :</strong><br>
According to @Shailesh Katarmal comment , simply I should to use <strong>selectRange</strong> method. </p>