Quick Table of Contents
[تحسين] The sprintf() Statement
The sprintf() statement is functionally identical to printf() except that the output is assigned to a
string rather than rendered to the browser. The prototype follows: string sprintf(string format [, mixed arguments])An example follows: $cost = sprintf("$%.2f", 43.2); // $cost = $43.20
12 / سبتمبر / 2011 الساعة 16:16
|