Home
last modified time | relevance | path

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

12

/php-src/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_variation7.phpt6 * 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) );
34 var_dump( array_sum($input) );
52 var_dump( array_sum($input) );
57 var_dump( array_sum($input) );
61 *** Testing array_sum() : array with unexpected entries ***
64 Warning: array_sum(): Addition is not supported on type string in %s on line %d
[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_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_objects_operation_no_cast.phpt2 Test array_sum() function with objects that implement addition but not castable to numeric type
9 echo "array_sum() version:\n";
10 var_dump(array_sum($input));
16 array_sum() version:
18 Warning: array_sum(): Addition is not supported on type DoOperationNoCast in %s on line %d
20 Warning: array_sum(): Addition is not supported on type DoOperationNoCast in %s on line %d
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_variation8.phpt2 Test array_sum() function: resources in array
7 echo "array_sum() version:\n";
8 var_dump(array_sum($input));
18 array_sum() version:
20 Warning: array_sum(): Addition is not supported on type resource in %s on line %d
H A Darray_sum_empty_array.phpt2 Test array_sum() function with empty array
7 echo "array_sum() version:\n";
8 var_dump(array_sum($input));
14 array_sum() version:
H A Darray_sum_objects_operation_no_cast_FFI.phpt2 Test array_sum() function with objects that implement addition but not castable to numeric type
14 echo "array_sum() version:\n";
15 var_dump(array_sum($input));
21 array_sum() version:
23 Warning: array_sum(): Addition is not supported on type FFI\CData in %s on line %d
H A Darray_sum_variation9.phpt2 Test array_sum() function with objects castable to numeric type
9 echo "array_sum() version:\n";
10 var_dump(array_sum($input));
16 array_sum() version:
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)));
/php-src/ext/zend_test/tests/
H A Dobserver_basic_01.phpt15 var_dump(array_sum([1,2,3]));
39 <!-- init array_sum() -->
40 <array_sum>
41 </array_sum>
52 <array_sum>
53 </array_sum>
63 <array_sum>
64 </array_sum>
H A Dobserver_closure_01.phpt13 var_dump(array_sum([40,2]));
35 <!-- init array_sum() -->
36 <array_sum>
37 </array_sum>
47 <array_sum>
48 </array_sum>
57 <array_sum>
58 </array_sum>
H A Dobserver_basic_02.phpt17 var_dump(array_sum([1,2,3]));
43 <!-- init array_sum() -->
44 <array_sum>
45 </array_sum>
56 <array_sum>
57 </array_sum>
67 <array_sum>
68 </array_sum>
H A Dobserver_opline_01.phpt20 echo array_sum([1,2,3]) . PHP_EOL;
48 <!-- init array_sum() -->
49 <array_sum>
50 </array_sum>
H A Dexecute_internal.phpt11 var_dump(array_sum($a));
19 <!-- internal enter array_sum() -->
/php-src/ext/dom/tests/
H A DDOMXPath_evaluate_namespace_node_set.phpt20 return array_sum(array_map(fn ($node) => strlen($node->nodeName), $nodes));
/php-src/ext/gd/tests/
H A Dbug47946.phpt31 $divisor = array_sum(array_flatten($matrix));
/php-src/ext/sockets/tests/
H A Dsocket_icmp.phpt30 $sum = array_sum($bit);
/php-src/ext/standard/
H A Dbasic_functions.stub.php1869 function array_sum(array $array): int|float {} function
H A Dbasic_functions_arginfo.h2379 ZEND_FUNCTION(array_sum);

Completed in 40 milliseconds

12