title: Build Array For Search Form Select Option Dropdown
body: <p>I want to create Price Range Filter Dropdown Inside Same Select Options Dropdown
  Example:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;select name="price" class="filterSelectBox"&gt;
   &lt;option value="disable"&gt;Select Price&lt;/option&gt;
                      &lt;option value="1"&gt;$500-1000&lt;/option&gt;
                      &lt;option value="1"&gt;$1000-1500&lt;/option&gt;
                      &lt;option value="1"&gt;$1500-2000&lt;/option&gt;
                      &lt;option value="1"&gt;$2000-2500&lt;/option&gt;
                      &lt;option value="1"&gt;$2500-3000&lt;/option&gt;
  &lt;/select&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I create php custom array and code like below to get dropdown like above, but i am not getting result like i want, can any one fix this issue for me?
  Thanks in advance?
  My Idea is to use meta query later in filtering.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
                   $filterPrice = array(
                      array(
                      'maximum_price' =&gt; '1000','1500','2000','2500','3000',
                      'minimum_price'=&gt; '500','1000','1500','2000','2500',
                      ));
                  ?&gt;
              &lt;li class="filter"&gt;
                  &lt;span class="selector"&gt;
                  &lt;select name="price" class="filterSelectBox"&gt;
              &lt;option value="disable"&gt;&lt;?php _e("Select price","um_lang"); ?&gt;&lt;/option&gt;
                  &lt;?php 
                      foreach($filterPrice as $price):
                  ?&gt;
                     
                      &lt;option value="&lt;?php echo $price['minimum_price'].'-'.$price['maximum_price'] ?&gt;"&gt;&lt;?php echo $price['minimum_price'].'-'.$price['maximum_price'] ?&gt;&lt;/option&gt;
                     
                  &lt;?php 
                 
                  endforeach;
                  ?&gt;
                  &lt;/select&gt;  
                  &lt;/span&gt;
              &lt;/li&gt;</code></pre>
  </div>
  </div>
  </p>