All PHP Tutorials
Ad Management
Counter
Email System
Forum and Guestbook
File Upload
Image Manipulation
Login / Members / Password
Pagination
Encode Script
Refresh / Redirection
Miscellaneous
All MySQL Tutorials
Create, Manage Database using phpMyAdmin
Connect to Database
Insert Data
Select Data
Edit Database
Update Database
Delete Database
Order Results
Forums



Home > PHP Tutorials
Making number format like 0001, 0002
Making number format like 0001, 0002
In this tutorial we'll make number format like 0001, 0002, 0003 in stead of 1, 2 ,3. It's very easy to do this 
 
Overview
In this tutorial create 1 file
1. number_format.php

Step
1. Create file number_format.php

number_format.php

<?
$num = 1;
printf("%04d", $num);
?>

// Result = 0001

Random Tutorial
 
Sending forgotten password
This php tutorial shows you how to send password to members via e-mail address when they forgot their password
 
Upload and Rename File
In this tutorial show you how to rename file when upload file to server to prevent new file overwrite an old file that exists in you server.
Advertisement
 
   
Hosted by Hostgator
© PHPeasystep.com 2005-2008