Searched refs:pad_size (Results 1 – 13 of 13) sorted by relevance
/PHP-7.1/ext/standard/tests/array/ |
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 26 $pad_size = 5; 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 13 * The $input and $pad_size arguments passed are fixed values. 18 // initialize the $input and $pad_size argument 20 $pad_size = 6; 25 var_dump( array_pad($input, $pad_size, $binary) ); // positive 'pad_size' 26 var_dump( array_pad($input, -$pad_size, $binary) ); // negative 'pad_size'
|
H A D | array_pad_variation5.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_size arguments passed are fixed values. 18 // initialize the $input and $pad_size argument 20 $pad_size = 5; 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'
|
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 19 $pad_size = 10; 22 var_dump( array_pad($input, $pad_size, $pad_value, $extra_arg) ); 27 $pad_size = 10; 28 var_dump( array_pad($input, $pad_size) );
|
H A D | array_pad_variation2.phpt | 2 Test array_pad() function : usage variations - unexpected values for 'pad_size' argument(Bug#43482) 7 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 8 * Description: Returns a copy of input array padded with pad_value to size pad_size 13 * Testing array_pad() function by passing values to $pad_size argument other than integers 18 echo "*** Testing array_pad() : passing non integer values to \$pad_size argument ***\n"; 84 foreach($pad_sizes as $pad_size) { 86 var_dump( array_pad($input, $pad_size, $pad_value) ); 93 *** Testing array_pad() : passing non integer values to $pad_size argument ***
|
H A D | array_pad_variation3.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 * $input and $pad_size arguments take fixed value. 18 // Initialise $input and $pad_size argument 20 $pad_size = 4; 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'
|
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 19 $pad_size = 10; 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 79 $pad_size = 6; 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-7.1/ext/mbstring/oniguruma/ |
H A D | regint.h | 236 #define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\ argument 237 (pad_size) = WORD_ALIGNMENT_SIZE \ 239 if ((pad_size) == WORD_ALIGNMENT_SIZE) (pad_size) = 0;\
|
H A D | regcomp.c | 560 int r, pad_size; in add_multi_byte_cclass() 563 GET_ALIGNMENT_PAD_SIZE(p, pad_size); in add_multi_byte_cclass() 565 if (pad_size != 0) add_bytes(reg, PadBuf, pad_size); in add_multi_byte_cclass() 570 pad_size = (WORD_ALIGNMENT_SIZE - 1) - pad_size; in add_multi_byte_cclass() 571 if (pad_size != 0) add_bytes(reg, PadBuf, pad_size); in add_multi_byte_cclass()
|
/PHP-7.1/main/ |
H A D | alloca.c | 301 long pad_size; /* Stack pad size. */ member
|
/PHP-7.1/ext/standard/ |
H A D | array.c | 3624 zend_long pad_size; /* Size to pad to */ local 3632 if (zend_parse_parameters(ZEND_NUM_ARGS(), "alz", &input, &pad_size, &pad_value) == FAILURE) { 3638 pad_size_abs = ZEND_ABS(pad_size); 3659 if (pad_size < 0) { 3674 if (pad_size > 0) { 3682 if (pad_size < 0) { 3697 if (pad_size > 0) {
|
H A D | basic_functions.c | 443 ZEND_ARG_INFO(0, pad_size)
|
Completed in 56 milliseconds