Lines Matching refs:pad_length
15 0, // pad_length < sizeof(input_string)
16 9, // pad_length <= sizeof(input_string)
17 10, // pad_length > sizeof(input_string)
18 16, // pad_length > sizeof(input_string)
23 /*loop through to use each variant of $pad_length on
25 foreach ($pad_lengths as $pad_length ) {
27 var_dump( bin2hex( str_pad($string, $pad_length) ) );
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) ) );