1--TEST-- 2Test array_sum() function : basic functionality 3--FILE-- 4<?php 5echo "*** Testing array_sum() : basic functionality ***\n"; 6 7// array with integer values 8$input = array(1, 2, 3, 4, 5); 9echo "-- array_sum() with integer array entries --\n"; 10var_dump( array_sum($input) ); 11 12// array with float values 13$input = array(1.0, 2.2, 3.4, 4.6); 14echo "-- array_sum() with float array entries --\n"; 15var_dump( array_sum($input) ); 16 17// array with integer and float values 18$input = array(1, 2.3, 4, 0.6, 10); 19echo "-- array_sum() with integer/float array entries --\n"; 20var_dump( array_sum($input) ); 21 22echo "Done" 23?> 24--EXPECT-- 25*** Testing array_sum() : basic functionality *** 26-- array_sum() with integer array entries -- 27int(15) 28-- array_sum() with float array entries -- 29float(11.2) 30-- array_sum() with integer/float array entries -- 31float(17.9) 32Done 33