Home
last modified time | relevance | path

Searched refs:pad_length (Results 1 – 13 of 13) sorted by relevance

/PHP-5.5/ext/standard/tests/strings/
H A Dstr_pad.phpt11 $pad_length = 20;
15 var_dump( str_pad($input_string, $pad_length, $pad_string, STR_PAD_LEFT) );
35 0, // pad_length < sizeof(input_string)
36 9, // pad_length <= sizeof(input_string)
37 10, // pad_length > sizeof(input_string)
38 16, // pad_length > sizeof(input_string)
41 /*loop through to use each varient of $pad_length on
44 foreach ($pad_lengths as $pad_length ) {
56 $pad_length = 16;
70 str_pad($input_tring, $pad_length, $pad_string, STR_PAD_LEFT, NULL );
[all …]
H A Dstr_pad_variation5.phpt2 Test str_pad() function : usage variations - unexpected large value for '$pad_length' argument
14 /* Prototype : string str_pad ( string $input , int $pad_length [, string $pad_string [, int $…
19 /* Test str_pad() function: with unexpected inputs for '$pad_length'
23 echo "*** Testing str_pad() function: with large value for for 'pad_length' argument ***\n";
27 $pad_length = PHP_INT_MAX;
28 var_dump( str_pad($input, $pad_length) );
32 *** Testing str_pad() function: with large value for for 'pad_length' argument ***
H A Dstr_pad_variation2.phpt2 Test str_pad() function : usage variations - unexpected inputs for '$pad_length' argument
5 /* Prototype : string str_pad ( string $input , int $pad_length [, string $pad_string [, int $…
10 /* Test str_pad() function: with unexpected inputs for '$pad_length'
14 echo "*** Testing str_pad() function: with unexpected inputs for 'pad_length' argument ***\n";
77 foreach($pad_lengths as $pad_length) {
79 var_dump( str_pad($input, $pad_length) );
88 *** Testing str_pad() function: with unexpected inputs for 'pad_length' argument ***
H A Dstr_pad_variation1.phpt5 /* Prototype : string str_pad ( string $input , int $pad_length [, string $pad_string [, int $…
11 * and expected type for '$pad_length'
73 //defining '$pad_length' argument
74 $pad_length = "20";
80 var_dump( str_pad($input, $pad_length) );
H A Dstr_pad_variation3.phpt5 /* Prototype : string str_pad ( string $input , int $pad_length [, string $pad_string [, int $…
11 * and expected type for '$input' and '$pad_length'
75 $pad_length = 20;
81 var_dump( str_pad($input, $pad_length, $pad_string) );
H A Dstr_pad_variation4.phpt5 /* Prototype : string str_pad ( string $input , int $pad_length [, string $pad_string [, int $…
11 * and expected type for '$input', '$pad_length' and '$pad_string'
77 $pad_length = 20;
84 var_dump( str_pad($input, $pad_length, $pad_string, $pad_type) );
H A Dstrlen_variation1.phpt70 //defining '$pad_length' argument
71 $pad_length = "20";
H A Dstristr_variation1.phpt68 //defining '$pad_length' argument
69 $pad_length = "20";
H A Dstristr_variation2.phpt68 //defining '$pad_length' argument
69 $pad_length = "20";
H A Dsscanf_variation2.phpt69 //defining '$pad_length' argument
H A Dsscanf_variation1.phpt69 //defining '$pad_length' argument
/PHP-5.5/ext/standard/
H A Dstring.c5264 long pad_length; /* Length to pad to */ local
5275 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|sl", &input, &input_len, &pad_length,
5282 if (pad_length <= 0 || (pad_length - input_len) <= 0) {
5296 num_pad_chars = pad_length - input_len;
H A Dbasic_functions.c2448 ZEND_ARG_INFO(0, pad_length)

Completed in 140 milliseconds