Home
last modified time | relevance | path

Searched refs:array_sum (Results 1 – 20 of 20) sorted by relevance

/PHP-8.1/ext/standard/tests/array/
H A Darray_sum_basic.phpt2 Test array_sum() function : basic functionality
5 echo "*** Testing array_sum() : basic functionality ***\n";
9 echo "-- array_sum() with integer array entries --\n";
10 var_dump( array_sum($input) );
14 echo "-- array_sum() with float array entries --\n";
15 var_dump( array_sum($input) );
20 var_dump( array_sum($input) );
25 *** Testing array_sum() : basic functionality ***
26 -- array_sum() with integer array entries --
28 -- array_sum() with float array entries --
[all …]
H A Darray_sum_variation6.phpt2 Test array_sum() function : usage variations - associative array
6 * Testing array_sum() with associative array as 'input' argument
9 echo "*** Testing array_sum() : with associative array ***\n";
14 var_dump( array_sum($input) );
19 var_dump( array_sum($input) );
23 *** Testing array_sum() : with associative array ***
H A Darray_sum_variation7.phpt2 Test array_sum() function : usage variations - 'input' array with unexpected values as array element
6 * Testing array_sum() with array having other than numeric entries
10 echo "*** Testing array_sum() : array with unexpected entries ***\n";
15 var_dump( array_sum($input) );
20 var_dump( array_sum($input) );
25 var_dump( array_sum($input) );
30 var_dump( array_sum($input) );
39 var_dump( array_sum($input) );
57 var_dump( array_sum($input) );
62 var_dump( array_sum($input) );
[all …]
H A Darray_sum_variation4.phpt2 Test array_sum() function : usage variations - array with duplicate values
6 * Checking array_sum() with integer and float array containing duplicate values
9 echo "*** Testing array_sum() : array with duplicate values ***\n";
14 var_dump( array_sum($int_input) );
19 var_dump( array_sum($float_input) );
24 *** Testing array_sum() : array with duplicate values ***
H A Darray_sum.phpt2 Test array_sum()
13 $s1 = array_sum($a);
14 $s2 = array_sum($b);
22 $s3 = array_sum($c);
23 $s4 = array_sum($d);
H A Darray_sum_variation2.phpt2 Test array_sum() function : usage variations - array with different integer value
6 * Testing array_sum() with different types of integer arrays containing data of following type:
10 echo "*** Testing array_sum() : different integer array ***\n";
15 var_dump( array_sum($int_values) );
20 var_dump( array_sum($octal_values) );
25 var_dump( array_sum($hex_values) );
30 var_dump( array_sum($mixed_int_value) );
35 *** Testing array_sum() : different integer array ***
H A Darray_sum_variation3.phpt2 Test array_sum() function : usage variations - array with different float values
9 echo "*** Testing array_sum() : array with different float values ***\n";
14 var_dump( array_sum($float_input) );
19 var_dump( array_sum($float_input) );
21 var_dump( array_sum($float_input) );
36 var_dump( array_sum($float_input) );
41 *** Testing array_sum() : array with different float values ***
H A Darray_sum_variation5.phpt2 Test array_sum() function : usage variations - array with reference variables as elements
6 * Testing array_sum() with 'input' having reference variables as elements
9 echo "*** Testing array_sum() : array with elements as reference ***\n";
25 var_dump( array_sum($input) );
30 *** Testing array_sum() : array with elements as reference ***
H A Darray_sum_on_reference.phpt2 array_sum() on array with references
9 var_dump(array_sum($nums));
H A Dbug65304.phpt2 Bug #65304 (Use of max int in array_sum)
5 var_dump(array_sum(array(PHP_INT_MAX, 1)));
H A D003.phpt11 and $a = array_sum ($a);
13 and $b = array_sum ($b);
/PHP-8.1/ext/zend_test/tests/
H A Dexecute_internal.phpt11 var_dump(array_sum($a));
19 <!-- internal enter array_sum() -->
H A Dobserver_basic_01.phpt14 var_dump(array_sum([1,2,3]));
H A Dobserver_closure_01.phpt12 var_dump(array_sum([40,2]));
H A Dobserver_basic_02.phpt16 var_dump(array_sum([1,2,3]));
H A Dobserver_opline_01.phpt20 echo array_sum([1,2,3]) . PHP_EOL;
/PHP-8.1/ext/gd/tests/
H A Dbug47946.phpt28 $divisor = array_sum(array_flatten($matrix));
/PHP-8.1/ext/standard/
H A Dbasic_functions.stub.php312 function array_sum(array $array): int|float {} function
H A Dbasic_functions_arginfo.h2313 ZEND_FUNCTION(array_sum);
2941 ZEND_FE(array_sum, arginfo_array_sum)
H A Darray.c5752 PHP_FUNCTION(array_sum) argument

Completed in 81 milliseconds