Searched refs:pad_string (Results 1 – 7 of 7) sorted by relevance
/php-src/ext/standard/tests/strings/ |
H A D | str_pad.phpt | 12 $pad_string = "-+"; 13 var_dump( str_pad($input_string, $pad_length) ); // default pad_string & pad_type 14 var_dump( str_pad($input_string, $pad_length, $pad_string) ); // default pad_type 15 var_dump( str_pad($input_string, $pad_length, $pad_string, STR_PAD_LEFT) ); 16 var_dump( str_pad($input_string, $pad_length, $pad_string, STR_PAD_RIGHT) ); 17 var_dump( str_pad($input_string, $pad_length, $pad_string, STR_PAD_BOTH) ); 40 $pad_string = "="; 56 foreach ( $pad_strings as $pad_string ) { 58 var_dump( str_pad($input_string, $pad_length, $pad_string, STR_PAD_LEFT) ); 60 var_dump( str_pad($input_string, $pad_length, $pad_string, STR_PAD_BOTH) ); [all …]
|
H A D | str_pad_variation2.phpt | 21 $pad_string = "="; 26 // default pad_string & pad_type 29 var_dump( bin2hex( str_pad($string, $pad_length, $pad_string) ) ); 30 var_dump( bin2hex( str_pad($string, $pad_length, $pad_string, STR_PAD_LEFT) ) ); 31 var_dump( bin2hex( str_pad($string, $pad_length, $pad_string, STR_PAD_RIGHT) ) ); 32 var_dump( bin2hex( str_pad($string, $pad_length, $pad_string, STR_PAD_BOTH) ) );
|
/php-src/ext/mbstring/tests/ |
H A D | mb_str_pad.phpt | 90 ValueError: mb_str_pad(): Argument #3 ($pad_string) must not be empty 91 ValueError: mb_str_pad(): Argument #3 ($pad_string) must not be empty 92 ValueError: mb_str_pad(): Argument #3 ($pad_string) must not be empty
|
/php-src/ext/mbstring/ |
H A D | mbstring.stub.php | 196 function mb_str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_… argument
|
H A D | mbstring_arginfo.h | 218 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pad_string, IS_STRING, 0, "\" \"")
|
/php-src/ext/standard/ |
H A D | basic_functions.stub.php | 2595 function str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_RIG…
|
H A D | basic_functions_arginfo.h | 1050 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pad_string, IS_STRING, 0, "\" \"")
|
Completed in 27 milliseconds