Searched refs:pad_value (Results 1 – 6 of 6) sorted by relevance
/php-src/ext/standard/tests/array/ |
H A D | array_pad_variation5.phpt | 2 Test array_pad() function : usage variations - two dimensional array for 'pad_value' argument 6 * Passing two dimensional array to $pad_value argument and testing whether 11 echo "*** Testing array_pad() : Passing 2-d array to \$pad_value argument ***\n"; 17 // initialize $pad_value 18 $pad_value = array ( 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_variation7.phpt | 8 * The $pad_size and $pad_value arguments passed are fixed values. 20 // initialize the $pad_size and $pad_value arguments 22 $pad_value = "HELLO"; 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'
|
H A D | array_pad_variation4.phpt | 6 * Passing binary values to $pad_value argument and testing whether 11 echo "*** Testing array_pad() : Passing binary values to \$pad_value argument ***\n"; 17 // initialize $pad_value with reference variable 26 *** Testing array_pad() : Passing binary values to $pad_value argument ***
|
H A D | array_pad_variation3.phpt | 2 Test array_pad() function : usage variations - possible values for 'pad_value' argument 7 * different possible values for $pad_value argument. 11 echo "*** Testing array_pad() : possible values for \$pad_value argument ***\n"; 41 // different values to be passed to $pad_value argument 105 foreach($pad_values as $pad_value) { 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 | 8 * The $pad_size and $pad_value arguments passed are fixed values. 73 // initialize the $pad_size and $pad_value arguments 75 $pad_value = "HELLO"; 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'
|
/php-src/ext/standard/ |
H A D | array.c | 4741 zval *pad_value; /* Padding value obviously */ local 4753 Z_PARAM_ZVAL(pad_value) 4772 if (Z_REFCOUNTED_P(pad_value)) { 4773 GC_ADDREF_EX(Z_COUNTED_P(pad_value), num_pads); 4783 ZEND_HASH_FILL_ADD(pad_value); 4798 ZEND_HASH_FILL_ADD(pad_value); 4805 zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), pad_value); 4820 zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), pad_value);
|
Completed in 24 milliseconds