Home
last modified time | relevance | path

Searched refs:pad_string (Results 1 – 7 of 7) sorted by relevance

/php-src/ext/standard/tests/strings/
H A Dstr_pad.phpt12 $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 Dstr_pad_variation2.phpt21 $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 Dmb_str_pad.phpt90 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 Dmbstring.stub.php196 function mb_str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_… argument
H A Dmbstring_arginfo.h218 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pad_string, IS_STRING, 0, "\" \"")
/php-src/ext/standard/
H A Dbasic_functions.stub.php2595 function str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_RIG…
H A Dbasic_functions_arginfo.h1050 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pad_string, IS_STRING, 0, "\" \"")

Completed in 26 milliseconds