$d) { $count += $d; }else{ $count += $d; } } echo $count;