<?php // 配列の作成 $a = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); // 配列の値の和を計算 $total = array_sum($a); // 表示 var_dump($total); ?>