Cosa fa sprintf quando é usato in questo modo?
a me sembra un bel fico secco di nulla... giusto?Codice PHP:
function textDump($num = 0) {
$txtout = "";
$pad = 4 * $num;
$txtout .= sprintf("%{$pad}s", "");
$txtout .= get_class($this) . ": ";
$txtout .= "bombard: " . $this->bombardStrength() . "<br \>";
return $txtout;
}