title: How to use the value of a array as select input
body: <p>i didn't really know how to formulate my question, but i guess the title best describes it. </p>
  
  <p>I have an array of dates (dd-mm-yyyy (2-9-2014, 7-10-2014 etc.)) and managed to show these in a select input. Now when i click a date and fill in my form, i get the key value returned of the array, so instead of showing "2-9-2014" it will show me 1, or when i click "7-10-2014" it shows me 2. </p>
  
  <p>How can i show the date of this array when sending the form?</p>
  
  <p>My array</p>
  
  <pre><code>array(16) { [0]=&gt; string(8) "2-9-2014" [1]=&gt; string(10) " 7-10-2014" [2]=&gt; string(10) " 4-11-2014" [3]=&gt; string(10) " 2-12-2014" [4]=&gt; string(9) " 6-1-2015" [5]=&gt; string(9) " 3-2-2015" [6]=&gt; string(9) " 3-3-2015" [7]=&gt; string(9) " 7-4-2015" [8]=&gt; string(9) " 5-5-2015" [9]=&gt; string(9) " 2-6-2015" [10]=&gt; string(9) " 7-7-2015" [11]=&gt; string(9) " 4-8-2015" [12]=&gt; string(9) " 1-9-2015" [13]=&gt; string(10) " 6-10-2015" [14]=&gt; string(10) " 3-11-2015" [15]=&gt; string(10) " 1-12-2015" } 
  </code></pre>
  
  <p>My $dates var = the array.</p>
  
  <p>In my view i call</p>
  
  <pre><code>&lt;div class="form-group col-4"&gt;
  {{ Form::label('date', 'Date:') }}&lt;br/&gt;
  {{ $errors-&gt;first('date') }}
  {{ Form::select('date', $dates, null, array('class'=&gt;'form-control')) }}
  </code></pre>
  
  <p></p>
  
  <p>And in my form email i call</p>
  
  <pre><code> &lt;?php $datum[$_POST['date']]; ?&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>{{ $date }}
  </code></pre>
  
  <p>But both will return the [] val of the array.</p>