I would like to know how to separate the values of an array like this below, separated by variables: https://prnt.sc/pi98a5
1 - 7 - Artes 1 - artes1
2 - 10 - Artes 2 - artes2
3 - 8 - Artes 3 - artes2
ARRAY
$array =
[
["1", "2", "3" ],
["7", "10", "8" ],
["Artes 1", "Artes 2", "Artes 3" ],
["artes1", "artes2", "artes3" ]
];
FOREACH
I tried to do it myself, but it got pretty confusing for me.
foreach ($array as $key => $row){
foreach ($array[$key] as $key2 => $row2){
echo $row2; //1237108Artes 1Artes 2Artes 3artes1artes2artes3
}
}