$kactane=(count($sayi[1])-1);
$toplam=0;
for($i=0;$i<=$kactane;$i++;) {
$toplam=$toplam+$sayi[1][$i];
}
echo $toplam;