Remove parent array -


i have array generate dynamically. delete de 'wrapper' array. how can it?

array (                 [0] => array (                      [taxonomy] => city                     [terms] => array ( [0] => boston )                      [field] => slug                      [operator] => not in                  )                  [1] => array (                      [taxonomy] => city                      [terms] => array ( [0] => chicago )                      [field] => slug                      [operator] => not in                  )              )  

how can remove parent array have structure:?

[0] => array (                          [taxonomy] => city                         [terms] => array ( [0] => boston )                          [field] => slug                          [operator] => not in                      )                      [1] => array (                          [taxonomy] => city                          [terms] => array ( [0] => chicago )                          [field] => slug                          [operator] => not in                      )  

you can't , pretend both arrays belong same variable.

the thing similar just:

$array1 = array (                      'taxonomy' => 'city',                     'terms' => array ('boston'),                      'field' => 'slug',                     'operator' => 'not in'                  )  $array2 = array (                      'taxonomy' => 'city',                     'terms' => array ('chicago'),                      'field' => 'slug',                     'operator' => 'not in'                  ) 

but can't hold 2 values in 1 variable.

one variable can hold 1 value @ time. when need more values inside 1 variable use arrays , wrap values together, variable still holding 1 value, holds various values grouped together.

think of variable 1 arm. there's man 1 arm. wants buy basketballs, can carry 1 ball. if need more balls need use bag (array) hold basketballs.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -