sprintf : sprintf : Development PHP Source Code
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
PHP Source Code
»
Development
»
sprintf
»
sprintf
<?
$total =
110
;
$fmt_total = sprintf
(
"%d"
, $total
)
;
echo
"$fmt_total"
;
?>
HTML code for linking to this page:
Related in same category :
Type Specifiers for printf() and sprintf()
sprintf %0.2f
sprintf: Regards the string an integer and formats it as a binary number
sprintf: Considers the string an integer and formats it as a decimal number
PHP Function Reference -> Users Code Examples / Notes - > sprintf:
sprintf
vsprintf
PHP Source Code
Development
»
sprintf
Apache
Client Info
CSV
date function
Date Time
Debug
Echo
Error Obtrusive Messages
Error Report
Exceptions
Explode implode
GET POST
getdate
HTTP_POST_VARS
I18N Locale
include path
list
max_execution_time
mktime
Number Format
Php Environment
Print
Printf
print_r
Query String
Server Info
sprintf
System Command
System Log
Your own Exceptions
HttpMessage
HttpRequest
HttpResponse
HttpQueryString
Chart
Class
COM and .Net (Windows)
Components
Cookie Session
Data Structure
Databases
Design Patterns
Development
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
String
Web Services SOAP WSDL
XML