PHP - Get all Values with Key X of multiple Arrays -


i've got array arrays in it.

i trying group values of arrays (for example) key [0] in 1 group.

my array looks this:

array (     [0] => array         (             [0] => haus             [1] => baum             [2] => stern             [3] => wache         )      [1] => array         (             [0] =>             [1] => ever             [2] => damn             [3] => hard         )      [2] => array         (             [0] => 2. ug             [1] => 1. ug             [2] => eg             [3] => 1. og         )      [3] => array         (             [0] => auffahrt             [1] => abfahrt             [2] => einfahrt             [3] => ausfahrt         )      [4] => array         (             [0] => 24 monate             [1] => 12 monate             [2] => 12 monate             [3] => 24 monate         )      [5] => array         (             [0] => lorem eins             [1] => lorem zwei             [2] => lorem drei             [3] => lorem vier         )  ) 

im trying because want echo e.g.

you said "haus, what, 2. ug, auffahrt, 24 monate , lorem eins" values key [0] need rest, too.

i hope question understandable, greetings.

in case still needs answer this,

jbafford's comment brought me solution:

$col = array_column($daten, 0); print_r($col); 

solution


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -