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



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
 
Verifying email address
When users sign up to join your website you may want to verify their email address by sending confirmation link to their email address. You'll learn how to do this in this tutorial. 
 
 
   
Hosted by Hostgator
© PHPeasystep.com 2005-2008