title: How to remove index from array
body: <p>I have following array : </p>
  
  <pre><code>Array
  (
      [relation] =&gt; AND
      [0] =&gt; Array
          (
              [relation] =&gt; AND
              [0] =&gt; Array
                  (
                      [key] =&gt; restaurant_country
                      [value] =&gt; India
                      [compare] =&gt; ==
                  )
  
              [1] =&gt; Array
                  (
                      [key] =&gt; restaurant_city
                      [value] =&gt; East Delhi - Noida
                      [compare] =&gt; ==
                  )
  
          )
  
      [1] =&gt; Array
          (
              [relation] =&gt; OR
              [0] =&gt; Array
                  (
                      [key] =&gt; restaurant_price_min
                      [value] =&gt; 100
                      [compare] =&gt; &lt;=
                  )
  
              [1] =&gt; Array
                  (
                      [key] =&gt; restaurant_price_min
                      [value] =&gt; 500
                      [compare] =&gt; &lt;=
                  )
  
          )
  
  )
  </code></pre>
  
  <p>I want to remove indexing from the above array. e.g I want the following array instead of above.</p>
  
  <pre><code>Array
  (
      [relation] =&gt; AND
      Array
          (
              [relation] =&gt; AND
              [0] =&gt; Array
                  (
                      [key] =&gt; restaurant_country
                      [value] =&gt; India
                      [compare] =&gt; ==
                  )
  
              [1] =&gt; Array
                  (
                      [key] =&gt; restaurant_city
                      [value] =&gt; East Delhi - Noida
                      [compare] =&gt; ==
                  )
  
          )
  
      Array
          (
              [relation] =&gt; OR
              [0] =&gt; Array
                  (
                      [key] =&gt; restaurant_price_min
                      [value] =&gt; 100
                      [compare] =&gt; &lt;=
                  )
  
              [1] =&gt; Array
                  (
                      [key] =&gt; restaurant_price_min
                      [value] =&gt; 500
                      [compare] =&gt; &lt;=
                  )
  
          )
  
  )
  </code></pre>
  
  <p>I want array in this format because wordpress query run in this way.</p>
  
  <p>I am not getting how to do this.</p>
  
  <p>Please help me.</p>