Techheadz Tips and Tutorials
Xilo Reseller Webhosting
Enter Search Term
ID: 178 Category: PHP Date Posted: 29/08/2010 Page Impressions : 895
0
Print Create a random number in PHP

Create a random number in PHP

To create a random number in PHP just copy and paste the code below.

<?php
srand ((double) microtime( )*1000000);
$random_number = rand( );
echo "$random_number";
?>




 
Visit OSDisc for Linux & BSD Disks
Home | About | Links | Add Your Link | Most Popular | Last Accessed | Twitter | Site Map
Apache | CSS | HTML | Javascript | Linux |MySQL | Perl | PHP | Linux News & Games | Retro Computing | Ubuntu | Mint | Kubuntu | Win