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?