Lines Matching refs:array
2 Test array_sum() function : usage variations - array with different float values
5 /* Prototype : mixed array_sum(array $input)
6 * Description: Returns the sum of the array entries
7 * Source code: ext/standard/array.c
11 * sum of array containing different float values
14 echo "*** Testing array_sum() : array with different float values ***\n";
16 // Simple float array
17 $float_input = array( 1.1, 2.3, 0.0, 0.5, -2.3, -0.8, .5);
18 echo "-- simple float array --\n";
21 // float array with scientific notations
22 $float_input = array( 1.2e2, 23.4e3, -4.1e2, 0.2e2, 2.1e-2, .5e3);
23 echo "-- float array with scientific notations e and E --\n";
25 $float_input = array( 1.2E2, 23.4E3, -4.1E2, 0.2E2, 2.1E-2, .5E3);
28 // Mixed float array
29 $float_input = array(
40 echo "-- Mixed float array --\n";
46 *** Testing array_sum() : array with different float values ***
47 -- simple float array --
49 -- float array with scientific notations e and E --
52 -- Mixed float array --