Searched refs:pad_size (Results 1 – 13 of 13) sorted by relevance
/PHP-5.4/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) 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 * Testing array_pad() function by passing values to $pad_size argument other than integers 16 echo "*** Testing array_pad() : passing non integer values to \$pad_size argument ***\n"; 82 foreach($pad_sizes as $pad_size) { 84 var_dump( array_pad($input, $pad_size, $pad_value) ); 91 *** 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-5.4/ext/mbstring/oniguruma/ |
H A D | regint.h | 262 #define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\ argument 263 (pad_size) = WORD_ALIGNMENT_SIZE \ 265 if ((pad_size) == WORD_ALIGNMENT_SIZE) (pad_size) = 0;\
|
H A D | regcomp.c | 540 int r, pad_size; in add_multi_byte_cclass() 543 GET_ALIGNMENT_PAD_SIZE(p, pad_size); in add_multi_byte_cclass() 545 if (pad_size != 0) add_bytes(reg, PadBuf, pad_size); in add_multi_byte_cclass() 550 pad_size = (WORD_ALIGNMENT_SIZE - 1) - pad_size; in add_multi_byte_cclass() 551 if (pad_size != 0) add_bytes(reg, PadBuf, pad_size); in add_multi_byte_cclass()
|
/PHP-5.4/main/ |
H A D | alloca.c | 301 long pad_size; /* Stack pad size. */ member
|
/PHP-5.4/ext/standard/ |
H A D | array.c | 2627 long pad_size; /* Size to pad to */ in PHP_FUNCTION() local 2634 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "alz", &input, &pad_size, &pad_value) == FAIL… in PHP_FUNCTION() 2640 pad_size_abs = abs(pad_size); in PHP_FUNCTION() 2669 if (pad_size > 0) { in PHP_FUNCTION()
|
H A D | basic_functions.c | 444 ZEND_ARG_INFO(0, pad_size)
|
Completed in 56 milliseconds