<?
include ("generateNumbreCode.class.php");
// It generates a random number of $digits digits. The second and third parameter is optional.
// The second one is used when you want that the code be a string of $digits digits.
// For that you add zeros in the away numbers. The third parameter says if the minimum number to use the random function begins in 1 or 0.
$user_code = create_random_number($digits, true);
?>
|