Searched refs:array_sum (Results 1 – 20 of 20) sorted by relevance
2 Test array_sum() function : basic functionality5 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 …]
2 Test array_sum() function : usage variations - associative array6 * Testing array_sum() with associative array as 'input' argument9 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 ***
2 Test array_sum() function : usage variations - 'input' array with unexpected values as array element6 * Testing array_sum() with array having other than numeric entries10 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 …]
2 Test array_sum() function : usage variations - array with duplicate values6 * Checking array_sum() with integer and float array containing duplicate values9 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 ***
2 Test array_sum()13 $s1 = array_sum($a);14 $s2 = array_sum($b);22 $s3 = array_sum($c);23 $s4 = array_sum($d);
2 Test array_sum() function : usage variations - array with different integer value6 * 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 ***
2 Test array_sum() function : usage variations - array with different float values9 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 ***
2 Test array_sum() function : usage variations - array with reference variables as elements6 * Testing array_sum() with 'input' having reference variables as elements9 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 ***
2 array_sum() on array with references9 var_dump(array_sum($nums));
2 Bug #65304 (Use of max int in array_sum)5 var_dump(array_sum(array(PHP_INT_MAX, 1)));
11 and $a = array_sum ($a);13 and $b = array_sum ($b);
12 var_dump(array_sum([40,2]));34 <!-- init array_sum() -->35 <array_sum>36 </array_sum>46 <array_sum>47 </array_sum>56 <array_sum>57 </array_sum>
14 var_dump(array_sum([1,2,3]));38 <!-- init array_sum() -->39 <array_sum>40 </array_sum>51 <array_sum>52 </array_sum>62 <array_sum>63 </array_sum>
16 var_dump(array_sum([1,2,3]));42 <!-- init array_sum() -->43 <array_sum>44 </array_sum>55 <array_sum>56 </array_sum>66 <array_sum>67 </array_sum>
20 echo array_sum([1,2,3]) . PHP_EOL;48 <!-- init array_sum() -->49 <array_sum>50 </array_sum>
11 var_dump(array_sum($a));19 <!-- internal enter array_sum() -->
28 $divisor = array_sum(array_flatten($matrix));
1177 function array_sum(array $array): int|float {} function
2295 ZEND_FUNCTION(array_sum);2918 ZEND_FE(array_sum, arginfo_array_sum)
5983 PHP_FUNCTION(array_sum) argument
Completed in 53 milliseconds