Since I'm still very new to PHP, I decided to learn how to randomize things. First I tried returning random numbers. Here's the script:
Code: Select all
<?php
srand((double)microtime()*1000000);
$randomNo = rand(0,10);
echo $randomNo;
?>My next question is, what exactly does the "(double)" -
Code: Select all
srand((double)microtime()*1000000);Also, regarding the count() function - When it counts, does it start at 1 instead of 0?
Thanks for your help. - Tom