title: php print out array
body: <p>I have an array and can't really narrow down the right way to print everything out.</p>
  
  <p>Array:</p>
  
  <pre><code>$month = Array(
      "1" =&gt; "January",
      "2" =&gt; "February",
      "3" =&gt; "March",
      "4" =&gt; "April",
      "5" =&gt; "May",
      "6" =&gt; "June",
      "7" =&gt; "July",
      "8" =&gt; "August",
      "9" =&gt; "September",
      "10" =&gt; "October",
      "11" =&gt; "November",
      "12" =&gt; "December"
  );
  </code></pre>
  
  <p>What I Tried:</p>
  
  <pre><code>function monthList() {
      require "config.php";
          echo '&lt;select name="month" title="Choose A Month"&gt;';
      foreach ($month as $i =&gt; $value) {
          echo '&lt;option value="'.the_month_#_here.'"&gt;'.$month[$i].'&lt;/option&gt;';
      }
          echo '&lt;/select&gt;';
  }
  </code></pre>
  
  <p>Which works fine for pulling out the name but how would i pull out the number associated with it in the array? Thats what I need as the <code>option value</code>.</p>