PHPでreduceLeft,reduceRight