Searched refs:pad_value (Results 1 – 10 of 10) sorted by relevance
/PHP-5.4/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 5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 6 * Description: Returns a copy of input array padded with pad_value to size pad_size 11 * Passing two dimensional array to $pad_value argument and testing whether 16 echo "*** Testing array_pad() : Passing 2-d array to \$pad_value argument ***\n"; 22 // initialize $pad_value 23 $pad_value = array ( 29 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_value' 30 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_value' 35 *** Testing array_pad() : Passing 2-d array to $pad_value argument ***
|
H A D | array_pad_variation7.phpt | 5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 6 * Description: Returns a copy of input array padded with pad_value to size pad_size 13 * The $pad_size and $pad_value arguments passed are fixed values. 25 // initialize the $pad_size and $pad_value arguments 27 $pad_value = "HELLO"; 31 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_size' 32 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_size' 36 var_dump( array_pad($input[1], $pad_size, $pad_value) ); // positive 'pad_size' 37 var_dump( array_pad($input[1], -$pad_size, $pad_value) ); // negative 'pad_size'
|
H A D | array_pad_variation4.phpt | 5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 6 * Description: Returns a copy of input array padded with pad_value to size pad_size 11 * Passing binary values to $pad_value argument and testing whether 16 echo "*** Testing array_pad() : Passing binary values to \$pad_value argument ***\n"; 22 // initialize $pad_value with reference variable 31 *** Testing array_pad() : Passing binary values to $pad_value argument ***
|
H A D | array_pad_error.phpt | 5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 6 * Description: Returns a copy of input array padded with pad_value to size pad_size 20 $pad_value = 1; 22 var_dump( array_pad($input, $pad_size, $pad_value, $extra_arg) );
|
H A D | array_pad_variation3.phpt | 2 Test array_pad() function : usage variations - possible values for 'pad_value' argument 5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 6 * Description: Returns a copy of input array padded with pad_value to size pad_size 12 * different possible values for $pad_value argument. 16 echo "*** Testing array_pad() : possible values for \$pad_value argument ***\n"; 46 // different values to be passed to $pad_value argument 110 foreach($pad_values as $pad_value) { 112 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_size' 113 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_size' 120 *** Testing array_pad() : possible values for $pad_value argument ***
|
H A D | array_pad_variation2.phpt | 5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 6 * Description: Returns a copy of input array padded with pad_value to size pad_size 13 * The $input and $pad_value arguments passed are fixed values. 18 // Initialise $input and $pad_value arguments 20 $pad_value = 1; 84 var_dump( array_pad($input, $pad_size, $pad_value) );
|
H A D | array_pad_variation1.phpt | 5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 6 * Description: Returns a copy of input array padded with pad_value to size pad_size 13 * The $pad_size and $pad_value arguments passed are fixed values. 18 // Initialise $pad_size and $pad_value 20 $pad_value = 1; 93 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_size' 94 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_size'
|
H A D | array_pad_variation6.phpt | 5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 6 * Description: Returns a copy of input array padded with pad_value to size pad_size 13 * The $pad_size and $pad_value arguments passed are fixed values. 78 // initialize the $pad_size and $pad_value arguments 80 $pad_value = "HELLO"; 86 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_size' 87 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_size'
|
/PHP-5.4/ext/standard/ |
H A D | array.c | 2623 zval *pad_value; /* Padding value obviously */ in PHP_FUNCTION() local 2634 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "alz", &input, &pad_size, &pad_value) == FAIL… in PHP_FUNCTION() 2665 pads[i] = &pad_value; in PHP_FUNCTION()
|
H A D | basic_functions.c | 445 ZEND_ARG_INFO(0, pad_value)
|
Completed in 39 milliseconds