How do I separate my arrays by index?

3

The text boxes corresponding to the number entered by the user are generated, each text box is accompanied by several checkboxes to choose the type of text.

But it goes like this:

Array ( [0] => 0 ) object(ElementosDTO)#7 (2) { 

    ["texto":"ElementosDTO":private]=> array(2) { 
       [1]=> string(5) "fdsfs" 
       [2]=> string(4) "sfsd" 
    } 
    ["idTipoElemento":"ElementosDTO":private]=> array(2) { 
        [1]=> string(1) "3" 
        [2]=> string(1) "3" 
     } 
} 

How do I merge the indexes? For example, each text with its element type id?

    
asked by anonymous 05.09.2017 / 19:34

0 answers