Login   Register  
PHP Classes
elePHPant
Icontem

File: Usage_Example.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2006-05-25 09:45
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($digitstrue);

?>