Home
last modified time | relevance | path

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

/PHP-8.0/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) );
41 $pad_string = "=";
57 foreach ( $pad_strings as $pad_string ) {
59 var_dump( str_pad($input_string, $pad_length, $pad_string, STR_PAD_LEFT) );
342 str_pad(): Argument #3 ($pad_string) must be a non-empty string
[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-8.0/ext/standard/
H A Dbasic_functions.stub.php672 function str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_RIG… argument
H A Dbasic_functions_arginfo.h1052 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pad_string, IS_STRING, 0, "\" \"")

Completed in 26 milliseconds