Decoded Output

Download
<?php  
  
 //  $number -    
  
 //     
  
 echo generate_password($_POST['number']);  
  
 function generate_password($number)  
  
 {  
  
 $arr = array('a','b','c','d','e','f',  
  
 'g','h','i','j','k','l',  
  
 'm','n','o','p','r','s',  
  
 't','u','v','x','y','z',  
  
 'A','B','C','D','E','F',  
  
 'G','H','I','J','K','L',  
  
 'M','N','O','P','R','S',  
  
 'T','U','V','X','Y','Z',  
  
 '1','2','3','4','5','6',  
  
 '7','8','9','0');  
  
 //    
  
 $pass = "";  
  
 for($i = 0; $i < $number; $i++)  
  
 {  
  
 //      
  
 $index = rand(0, count($arr) - 1);  
  
 $pass .= $arr[$index];  
  
 }  
  
 return $pass;  
  
 }  
  
?>

Function Calls

generate_password1

Variables

None

Stats

MD542e8a0735eba1787901ac4ce323048e3
Eval Count0
Decode Time83 ms

Original Code

<?php 
 
 //  $number -   
 
 //    
 
 echo generate_password($_POST['number']); 
 
 function generate_password($number) 
 
 { 
 
 $arr = array('a','b','c','d','e','f', 
 
 'g','h','i','j','k','l', 
 
 'm','n','o','p','r','s', 
 
 't','u','v','x','y','z', 
 
 'A','B','C','D','E','F', 
 
 'G','H','I','J','K','L', 
 
 'M','N','O','P','R','S', 
 
 'T','U','V','X','Y','Z', 
 
 '1','2','3','4','5','6', 
 
 '7','8','9','0'); 
 
 //   
 
 $pass = ""; 
 
 for($i = 0; $i < $number; $i++) 
 
 { 
 
 //     
 
 $index = rand(0, count($arr) - 1); 
 
 $pass .= $arr[$index]; 
 
 } 
 
 return $pass; 
 
 } 
 
?>