Its prototype is simple:
string sprintf(string format , [mixed arg1 [, mixed arg2 [ ,...]]]);
The placeholders in the format string are marked by
"%" and are followed by one or more of these elements, in this order:
"+" sign that forces to preceed the result with a plus or minus sign on numeric values. By default, only the
"-" sign is used on negative numbers.