File: WIAdmin/WIModule/modules/randStrGen.php

Recommend this page to a friend!
  Classes of Jules Warner  >  WICMS  >  WIAdmin/WIModule/modules/randStrGen.php  >  Download  
File: WIAdmin/WIModule/modules/randStrGen.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 3 years ago
Size: 430 bytes
 

 

Contents

Class file image Download
<!-- ********************************** -->
<!-- ********* randStrGen.php ********* -->
<!-- ********************************** -->
<?php
function randStrGen($len){
   
$result = "";
   
$chars = "abcdefghijklmnopqrstuvwxyz0123456789$$$$$$$1111111";
   
$charArray = str_split($chars);
    for(
$i = 0; $i < $len; $i++){
       
$randItem = array_rand($charArray);
       
$result .= "".$charArray[$randItem];
    }
    return
$result;
}
?>


For more information send a message to info at phpclasses dot org.