title: Save to array an array content that it's inside array
body: <p>I have this array. I want to extract to a new one array the content of only one of this array ([choices]). How can i do it in php?</p>
  
  <pre><code>   Array
  (
      [0] =&gt; Array
          (
              [key] =&gt; field_54df3275b708a
              [label] =&gt; Idioma
              [name] =&gt; idioma
              [type] =&gt; select
              [instructions] =&gt; 
              [required] =&gt; 0
              [choices] =&gt; Array
                  (
                      [Catalan] =&gt; Catalan
                      [Castellano] =&gt; Castellano
                      [Ingles] =&gt; Ingles
                  )
  
              [default_value] =&gt; 
              [allow_null] =&gt; 0
              [multiple] =&gt; 0
              [conditional_logic] =&gt; Array
                  (
                      [status] =&gt; 0
                      [rules] =&gt; Array
                          (
                              [0] =&gt; Array
                                  (
                                      [field] =&gt; null
                                      [operator] =&gt; ==
                                      [value] =&gt; 
                                  )
  
                          )
  
                      [allorany] =&gt; all
                  )
  
              [order_no] =&gt; 0
          )
  
  )
  </code></pre>
  
  <p>I try this code (i think that's its a bad code):</p>
  
  <pre><code>foreach($array as $k=&gt;$v){
            if (is_array($v)){
              foreach($v as $l=&gt;$w){
                  if ($w){ 
                      foreach($w as $s=&gt;$t){
                          $idiomas[]=$t.'&lt;br /&gt;';
                      }
                  }
              }
          }
      }
  </code></pre>
  
  <p>But it saves [choices] and [conditional_logic] to new array, and i only want [choices]</p>
  
  <p>Thankyou so much</p>