MY NODE
SHARING MY KNOWLEDGE
Tuesday, June 3, 2008
How to get a random number in PHP
Looking a way to generate a random number using a PHP function.
Here how it's done, pretty easy to get a random number
<?php
echo rand();
?>
to see more options in rand() function visit
www.php.net/rand
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment