Quick Table of Contents
[Edit] 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
September 12, 2011
|
This Page is Under Construction! - If You Want To Help Please Send your CV - Advanced Web Core (BETA)
© Advanced Web Core. All rights reserved