PHP Classes

File: Usage_Example.txt

Recommend this page to a friend!
  Classes of Diego Szwebel   Generate Number Code   Usage_Example.txt   Download  
File: Usage_Example.txt
Role: Example script
Content type: text/plain
Description: Usage example
Class: Generate Number Code
Generate configurable random number code
Author: By
Last change: upload file
Date: 18 years ago
Size: 430 bytes
 

Contents

Class file image Download
<?
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);

?>