I written the following tiny php program to test printf and sprintf:
<?php
    $str_1 = printf("%x%x%x", 65, 127, 245);
    $str_2 = sprintf("%x%x%x", 65, 127, 245);
    echo $str_1 . "\n";
    echo $str_2 . "\n";
the output is this:
417ff56
417ff5
why I have that 6 digit in the first line of output?



$str_1contains a"6"- length returned byprintf