Cosa fa sprintf quando é usato in questo modo?

Codice PHP:
    function textDump($num 0) {
        
$txtout "";
        
$pad $num;
        
$txtout .= sprintf("%{$pad}s""");
        
$txtout .= get_class($this) . ": ";
        
$txtout .= "bombard: " $this->bombardStrength() . "<br \>";
        return 
$txtout;
    } 
a me sembra un bel fico secco di nulla... giusto?