Searched refs:array_pad (Results 1 – 9 of 9) sorted by relevance
/PHP-8.0/ext/standard/tests/array/ |
H A D | array_pad.phpt | 2 array_pad() tests 6 var_dump(array_pad(array(), 1, 0)); 8 var_dump(array_pad(array(), 0, 0)); 9 var_dump(array_pad(array(), -1, 0)); 10 var_dump(array_pad(array("", -1, 2.0), 5, 0)); 11 var_dump(array_pad(array("", -1, 2.0), 5, array())); 12 var_dump(array_pad(array("", -1, 2.0), 2, array())); 13 var_dump(array_pad(array("", -1, 2.0), -3, array())); 14 var_dump(array_pad(array("", -1, 2.0), -4, array())); 17 var_dump(array_pad(array("", -1, 2.0), 2000000, 0)); [all …]
|
H A D | array_pad_variation4.phpt | 2 Test array_pad() function : usage variations - binary safe checking 7 * array_pad() behaves in an expected way with the other arguments passed to the function. 11 echo "*** Testing array_pad() : Passing binary values to \$pad_value argument ***\n"; 20 var_dump( array_pad($input, $pad_size, $binary) ); // positive 'pad_size' 21 var_dump( array_pad($input, -$pad_size, $binary) ); // negative 'pad_size' 26 *** Testing array_pad() : Passing binary values to $pad_value argument ***
|
H A D | array_pad_variation7.phpt | 2 Test array_pad() function : usage variations - two dimensional array for 'input' argument 7 * array_pad() behaves in an expected way with the other arguments passed to the function. 11 echo "*** Testing array_pad() : Passing 2-D array to \$input argument ***\n"; 26 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_size' 27 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_size' 31 var_dump( array_pad($input[1], $pad_size, $pad_value) ); // positive 'pad_size' 32 var_dump( array_pad($input[1], -$pad_size, $pad_value) ); // negative 'pad_size' 37 *** Testing array_pad() : Passing 2-D array to $input argument ***
|
H A D | array_pad_variation5.phpt | 2 Test array_pad() function : usage variations - two dimensional array for 'pad_value' argument 7 * array_pad() behaves in an expected way with the other arguments passed to the function. 11 echo "*** Testing array_pad() : Passing 2-d array to \$pad_value argument ***\n"; 24 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_value' 25 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_value' 30 *** Testing array_pad() : Passing 2-d array to $pad_value argument ***
|
H A D | array_pad_variation3.phpt | 2 Test array_pad() function : usage variations - possible values for 'pad_value' argument 6 * Testing array_pad() function for expected behavior by passing 11 echo "*** Testing array_pad() : possible values for \$pad_value argument ***\n"; 103 // loop through each element of $pad_values to check the behavior of array_pad() 107 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_size' 108 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_size' 115 *** Testing array_pad() : possible values for $pad_value argument ***
|
H A D | array_pad_variation6.phpt | 2 Test array_pad() function : usage variations - different arrays for 'input' argument 7 * array_pad() behaves in an expected way with the other arguments passed to the function. 11 echo "*** Testing array_pad() : Passing different arrays to \$input argument ***\n"; 77 // loop through each sub-array within $inputs to check the behavior of array_pad() 81 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_size' 82 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_size' 89 *** Testing array_pad() : Passing different arrays to $input argument ***
|
/PHP-8.0/ext/standard/ |
H A D | basic_functions.stub.php | 168 function array_pad(array $array, int $length, mixed $value): array {} function
|
H A D | basic_functions_arginfo.h | 2282 ZEND_FUNCTION(array_pad); 2907 ZEND_FE(array_pad, arginfo_array_pad)
|
H A D | array.c | 4278 PHP_FUNCTION(array_pad) argument
|
Completed in 41 milliseconds