The problem is that I add the positions of the matrices instead of the value
$totalVotos = Array
(
[0] => Array
(
[votos] => 8
[0] => 8
)
[1] => Array
(
[votos] => 9
[0] => 9
)
[2] => Array
(
[votos] => 4
[0] => 4
)
[3] => Array
(
[votos] => 10
[0] => 10
)
)
foreach ($totalVotos as $numeros) {
$sumar = $numeros['0'];
$sumar = explode(' ', $sumar);
print_r(array_sum($sumar));
}